A condition that detects the last pressed key and executes actions based on the last key you pressed. This would make top-down movement way easier by seeing if the last key you pressed was left, so only the left animation will play and if you press another button it moves in that direction without glitchy animations. Iām really new to GDevelop so if this is already a thing please tell me guys
There are several keyboard conditions under other.
https://wiki.gdevelop.io/gdevelop5/all-features/keyboard/reference/
Note: you can use last pressed as a condition with the compare 2 strings condition.
1 Like
The issue with this solution is that the player will stop moving if you press other keys to trigger actions. Also, Iām not sure it will remember the previous key when the most recent one is released.
But, the top-down behavior already checks which key is the most recent one.
It sounds like maybe something that can be solved by showing your events sheet so members can audit if you have an event that may be causing the glitchy animations.