I was wondering how I would be able to stop everything on screen to stop moving, like how it does in the pause menu.
1 Like
As far as I know, there isn’t a block for that, you’d have to have a game_running variable that is checked in all game updates, overlaps, button presses, etc. in addition to setting any move with buttons to 0, 0. Also loop through all of the sprites and set their velocity and acceleration to 0.
I hope this helps!
If you change it to forever, and add an if true you can toggle “pause”
Also add a set <sprite> acceleration to ax 0 ay 0
block just to make sure, since some sprites could be accelerating, and setting their velocity to 0 wouldn’t stop them. But yeah, I think this does it
1 Like