How to freeze map events temporary?

● ARCHIVED · READ-ONLY
Started by Hendrik 6 posts View original ↗
  1. 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?
  2. Why do you want to pause them? What is going to happen while they're paused?


    There might be a better way than that.
  3. 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.
  4. 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
  5. 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?