HelloMum / Shared-Mobility-Adventure-Game

Final Project: Shared-Mobility Adventure Game COMP30820 Java Programming (Conv)
GNU General Public License v3.0
0 stars 0 forks source link

Movement change direction speed bug #29

Closed HelloMum closed 7 months ago

HelloMum commented 7 months ago

Because of how the input of keys works the game when you press a key will take a bit until changing directions. If you follow a line it will not have this issue as the input is being spammed until the flag is removed. I will try yo reimplement the flags in a way that rember the last key press when the timer is done to always get a response that is 200ms.

HelloMum commented 7 months ago

Now the reset movement control will check if the direction that you wanted to move and if the last key is different to the one that you used it will remember that you wanted to go another direction so it will instally move you when the timer is finished this might be seen like a bug but because we dont have diagonals the player will be about the same speed when triying to reach a diagonal. as it will take 200 to go right then one up that is instant. This will make the game feel more responsive and it does not give an advantage...