Help - Search - Members - Calendar
Full Version: Night to Day in XP
RPG RPG Revolution Forums > Game Engines > RPG Maker XP Discussion
Perigryn
In a project I'm working on, I want to have the environment transition as time passes.

I was having some difficulties at first, since I wanted it to be relative to play time, but that wasn't working, plus with the way the clock keeps ticking in the menu, that wouldn't really line up nicely anyways.

Instead, I set up parallel process on the start screen that activated a switch called 'Time Passage'.
This starts a common event that activates a switch called 'Day' then proceeds to do the following:
CODE
@>loop
@>Control Variables: [Time Passage] +=1
@> Wait 10 frames
@>
Repeat Above

You know the drill.

I've then made Common Events for Day, Evening, Night and Morning, all activated at 50 (for the moment) point intervals that activate the passage of time, and go like so, for example:

(Er... It won't let me write beneath or cut that part of code and paste it above... so, sorry?)

And it does this for each passage of time until Morning rolls around. Then, the variable is reset to 0 upon reaching 200 and the whole process begins again.

Does this seem right, or too convoluted or what? Any feedback would be nice, again, sorry for the wonky post editing... Not sure what happened.

CODE
@>Change screen colour tone to 0,0,0 in 100 frames blah, blah
@>Conditional Branch: Variable: [Time Passage] == 50
@>Control Switches [Evening] = ON
@>Control Switches [Day] = OFF
@>
Else
@>
Branch End
punk_blood
visit rpg-palace... search no script tutorials and there is one made by yamitami (i think its by her/him)
Perigryn
Much thanks. I wasn't that far off, but it helped tidy things up a bit. I was doing it a little too convoluted, now it's more necessary eventing!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.