I've realized that when holding onto a key and action on keypress is set to set animation of a node, the animation fails to play in a loop perfectly, can someone please help on how to achieve the animation playing in a loop well
In my game, I make most inputs on a timer that on receipt of that input it then registers that request and disables that key for like 300-500ms so that wont stuff things up by holding down input keys. Then after the timer allow input again.
Another way is to only reset the input once received when the key is left up then allow that same input again - this is better actually.
← Return to mod
Comments
Log in with itch.io to leave a comment.
Hi robo
I've realized that when holding onto a key and action on keypress is set to set animation of a node, the animation fails to play in a loop perfectly, can someone please help on how to achieve the animation playing in a loop well
In my game, I make most inputs on a timer that on receipt of that input it then registers that request and disables that key for like 300-500ms so that wont stuff things up by holding down input keys. Then after the timer allow input again.
Another way is to only reset the input once received when the key is left up then allow that same input again - this is better actually.
do you have any script that does this?
Thank you for this! Though it looks like the download link for this one is missing?
sorry about that - now uploaded....comes with few better enhancements also...
Awesome, thanks for fixing it!