Brothers
I try to create a pause button, I think I have succeeded but I have a problem, Everything stops, nothing but My character continues to play!!!!
thinks brothers
See this
https://www.scirra.com/tutorials/646/ad ... me-pausing
Develop games in your browser. Powerful, performant & highly capable.
thank you brother
My problem is not solved :-/
My character hovers, when I click on pause everything stops except my character who is taken by gravity, so he goes down without moving, I do not understand !!!!
help
It's kind of plappy bird movement,
You have an idea please?????
Are you using dt in your events? Everything should stop moving when the time scale hits 0.
I set the time scale to 0,
Everything saves my player falling, the animation of my player stops but he is still pulling down and the mouse plays
Add a variable paused set to 0 on start, when you hit the pause button set it to 1.
Then in the events where the player is moving and the mouse add another condition system -> compare global variable -> paused == 0.
Thank you it works