Platform Builder Forums

Main => Suggestions => Topic started by: War on September 24, 2020, 02:30:42 PM

Title: Soft freeze command
Post by: War on September 24, 2020, 02:30:42 PM
Since the 6.1 version, there is a freeze command that allows to freeze the game. However, when it's applied, no commands can be applied, so this command is useless. So I think that an important command to add would be a soft freeze command, which would be much more useful since it allows for custom pause menu using hud and player button commands.
What is paused? Entity movement and entity animations, but also some other stuff (something that should be pretty obvious, im not mentioning them because of my lack of time).
What isn't paused? Commands (ex: player commands that would be used for pause menu controls, as specified earlier) and hud animations (which I will come over in the pause menu section). However, if commands affecting entities are executed, their effects will be applied but will be visually reflected at the next frame.
How would it allow making a pause menu? Since the hud sprites are not paused, we can use them for the pause menu. For the option menu, we can use player events on the character (when pressing up scroll up) and values for the selection id, etc.
How to prevent other events from unpaused mode to trigger? Just use a value "is paused" and do a value check at every of you events. Simple as that. (note: TingThing could also add a soft freeze check command to optimize more stuff and free a value name but thats not needed)
Anything else??? No I recognize I explain stuff badly but I don't have much time rn
Title: Re: Soft freeze command
Post by: CGM on September 24, 2020, 04:55:49 PM
I've wanted this since the freeze game command was introduced.