Hey, i've created a pause and play button but whenever i pause it and use the touch directional buttons, the sprite still animates, does anyone know how i can make it stop altogether? Thanks for the help in advance
if paused, set animation speed to 0
Thank you for the quick reply it's fixed the left and right animations but for some reason it still shows the animation when i press jump, any idea why this is? :/
No way to tell without seeing the code, but you might want to restructure how the pause button works. Instead of setting time scale to 1 in my own projects I keep a "paused" variable and make sure nothing moves while it is set. This way anything that's still functional while paused isn't restrained by the time scale.
On pause state set the system time scale to 0 which will completely stop the movement, once you resume the gameplay, set it back to 1.
I disabled game controls while game is paused.
Look
https://www.scirra.com/forum/plugin-pause-behavior-pause_t64888
Use "Start ignoring platform user input" when pause.
Develop games in your browser. Powerful, performant & highly capable.
This would work..
Another option would be putting all userinput in a group and de-activating the group when pause menu is started, when pause menu is stopped, just activate the group again..