[Bug]: moving and shoot speed don't increase with level up
👉 Please confirm the following
- [x] I agree to follow the Code of Conduct that this project adheres to.
- [x] I checked the current issues for duplicate bugs.
❌ 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
💻 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.
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.
This solution works but its not very beautiful. maybe someone finds a better one.
Oh thank for the bug issue !! It is for sure a problem :/ Let's increase the shoot speed and moving speed a tiny bit for each level, because a x2 for each level would be too complicated, but yes let's find a solution to make it look good !!
There is already a good increasement in the levelManager. The Problem is that the dinos values don't use the values of the levelManager
Okay good to know then, thanks for all your investigations !