Skip to content

[Bug]: moving and shoot speed don't increase with level upΒ #192

@Johann4002herti

Description

@Johann4002herti

πŸ‘‰ Please confirm the following

❌ Current Behavior

both speed stats increase with rising levels, but that in the greendinoComponent the levelManager is not working. This means the green dinos are always moving and shooting at the same speed.

βœ… Expected Behavior

If the level is increasing both speed stats should be used by the dinos.

🚩 Steps To Reproduce

Its hard to see in game, but if you print the stats out over the console you see that the stats doesn't change

Image

πŸ’» Environment

- OS: Windows 11
- Game version: 1.2.0

ℹ️ Additional information

i have found this bug while i added the red dino boss.

Here is how the levelmanger should be included but this does not work.
Image

Here is my solution:
I made a global variable for the levelmanger and the first time the dino gets updated the stats get read out. Thats because you have to assign the levelmanager manually and the onAdded function fires before the levelmanger is assigned.
Image

This solution works but its not very beautiful. maybe someone finds a better one.

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions