Author Topic: Soft freeze command  (Read 278 times)

warrior

Soft freeze command
« 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

Christian Game Maker (CGM)

  • Christian, videogame dev hobbyist. Servant of Jesus Christ.
  • Master Builder
  • *
  • Posts: 3833
  • Total likes: 70
  • The way of the Cross leads home.
    • View Profile
    • The Adventures of Super Mike Website (ASM)
Re: Soft freeze command
« Reply #1 on: September 24, 2020, 04:55:49 PM »
I've wanted this since the freeze game command was introduced.