Anyway to freeze the game for a second?

Heyo, so I’m working on a flashy-ish fighter where you can punch an enemy while they’re attacking to parry them. Currently, that just plays a sound, shakes the screen and adds more knockback. I’d like to make the game completely pause for a second, freezing it for around a second to make it feel more impactful. If anyone knows how to do this, please let me know!

7 Likes

These can be used to pause and unpause everything:

game.pushScene()
game.popScene()

I think you can switch to javascript and paste them onto an empty line then return to blocks to use them for block coding

y
A good w to make the game freeze is using the tilemap! As shown, using the pause in a tilemap block will stop the entire game and gives an extra oomph! You can attempt to replicate the code below.

If you put a Wait() inside a function, it pauses the whole game until the function ends.

That may be because of lag, because functions are supposed to run instantly, and it not running instantly may cause the game to freeze, because it is an unknown response.

This is perfect, thank you so much!