How to freeze map events temporary?

Hello,

i want to know i can let all events be freezed using script.

Ive found this in a pause script:

      frame = Graphics.frame_count      stopping      if TIME_STOP        Graphics.frame_count = frame      endI tried to use it in my script but it didnt work.

Someone have an idea?
Why do you want to pause them? What is going to happen while they're paused?


There might be a better way than that.
Im currently working on a menu.

Im using parallels processing main events to display the pictures

and using an input script to control the variables.

The menu doesnt work anymore properly when im using automatic events

which would stop the events.

Thats why i want just to freeze the map until the user closes the menu.
Well, for one, using parallels to show pictures for an evented menu is not really a nice idea... Why not just make it autorun (so that no other autorun event will fire during it's duration), show the pictures then run a loop that waits for input?

basically:

show picture

show options

 loop

   if input is pressed

     go to label: run

 end

label: run

do something

I think that's the good way to go about it when using events... otherwise you'd want to dabble into scripting the menu so that you can run it in a new scene instead
Modding your script to freeze events would also freeze the parallel process event that you're using for the menu 🙂


There are menu systems out there done with events. Have you had a look to see if you can find any?
https://github.com/Archeia/YEARepo/blob/master/Utility/Stop_All_Movement.rb

this only stop the movement though. i don't know what kind of freeze you want 😀 .

Original thread: https://forums.rpgmakerweb.com/threads/how-to-freeze-map-events-temporary.28400/