Jump to content
New account registrations are disabed. This website is now an archive. Read more here.
  • 0
corpsegirl

Pause all events

Question

Just need ot pause all the events on the screen from moving while another event is active. Not really sure how to easily accomplish this.

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0

I think in the earlier versions of RPG Maker there was a command that said "Stop all Movement", however they seemed to remove it from this version. Either that, or I'm missing something. I figure you'd just have to make a universal event that turns off all the moving events. That's said, it will most likely cause movement errors if you restart them.

Share this post


Link to post
Share on other sites
  • 0

Just wrote this quick snippet up and it seems to work pretty well. Insert the following script before Main:

 

 

class Game_Event < Game_Character
 attr_reader :id
 attr_accessor :paused
 alias :pausing_update :update
 alias :pausing_initialize :initialize

 def initialize(map_id, event)
   pausing_initialize(map_id, event)
   @paused = false
 end

 def update
   if (@paused == false || @paused == nil)
     pausing_update
   end
 end
end

class Game_Map
 def pause_events(eventid, val)
   for i in @map.events.keys
     unless i == eventid
       @events[i].paused = val
     end
   end
 end
end

 

 

To pause all other events but the current one, add a script command:

$game_map.pause_events(@event_id, true)

 

To restart the events, add a script command

$game_map.pause_events(@event_id, false)

Share this post


Link to post
Share on other sites
  • 0

Hmmm I am not sure if this would work but maybe...Maybe you could use the Exit Event Proccesing Event on each event with a time event? Idk maybe...Or I could be generous and make you a script...Oh that dude already had one... :unsure:

Share this post


Link to post
Share on other sites
  • 0

Switches my friend, switches.

 

If you need a demo just ask.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...