Charas-Project

  • Home
  • Help
  • Search
  • Calendar
  • Login
  • Register
*
Please login or register.

Login with username, password and session length
 

News:

New forum theme up and running!



  • Charas-Project »
  • Game Creation »
  • Requests »
  • RPG Maker Programming »
  • Morning, Day, Night
« previous next »
  • Print
Pages: [1]

Author Topic: Morning, Day, Night  (Read 1774 times)

Offline evmaster

  • Member
  • Associate
  • *
  • Posts: 231
Morning, Day, Night
« on: July 30, 2007, 08:40:02 PM »
I got the day and night part figured, but I can't figure out how to do a third one. Like, bright is morning, a little darker for Day, and very dark for Night. Events with 3 pages with switiches just doesn't work.
Logged

Offline A Forgotten Legend

  • Your neighborhood box of colors
  • Royal
  • *
  • Posts: 4,428
    • Website
(No subject)
« Reply #1 on: July 30, 2007, 08:58:13 PM »
Go here for a great Internal Clock/Day-Night tutorial.  I used this and based my season system off it.  It is rather easy to follow.
Logged

Offline thepsynergist

  • Kupo!
  • Associate
  • *
  • Posts: 159
  • I enjoy video game programming, as well as any and all RPG's
(No subject)
« Reply #2 on: August 02, 2007, 04:21:53 AM »
The trick is simple, as I have one in my game.
1st, make two common events and 5 switches.

Name the switches, Dawn, Day, Dusk, Night, and Outside.

2nd, make a common event.  Make the event as follows:
<>Turn Switch Day ON
<>Wait X sec (however long you want)
<>Turn Switch Day OFF
<>Turn Switch Dusk ON
<> Wait X sec
<>Turn Switch Dusk OFF
<>Turn Switch Night ON
<>Wait X sec
<>Turn Switch Night OFF
<>Turn Switch Dawn ON
<>Wait X sec
<>Turn Switch Dawn OFF

Be sure to set as a paralell process.

3rd, make a common event that only activates if the outside switch is on.  Set as follows:
<>Fork if Switch Day is ON
  <>Set Screen Tone (R100,B100,G100,S100), 2.0 sec(W)
<>Fork if Switch Dusk is ON
  <>Set Screen Tone (R80,B80,G80,S100), 2.0 sec(W)
<>Fork if Switch Night is ON
  <>Set Screen Tone (R60,B80,G60,S100), 2.0 sec(W)
<>Fork if Switch Dawn is ON
  <>Set Screen Tone (R100,B70,G50,S100), 2.0 sec(W)

4th, Make sure that on the world map or any map that you are outside, make a paralell process event that turns the outside switch on.  But make a new page within the event that turns on if the outside switch is on.  Don't make any event commands on this page, except to set the event start to Push Key.  This prevents lag.

5th, for every teleport event that takes you inside a building or cave, etc., turn the outside switch off.  That way time will still pass, but it won't show inside a building.

I hope I explained thoroughly enough, and I hope that this helps you.
Logged
http://i212.photobucket.com/albums/cc135/thepsynergist/JeffsTrainerCard.png
Register me in your Pal Pad in Diamond/Pearl!

  • Print
Pages: [1]
« previous next »
  • Charas-Project »
  • Game Creation »
  • Requests »
  • RPG Maker Programming »
  • Morning, Day, Night
 

  • SMF 2.0.10 | SMF © 2015, Simple Machines
  • XHTML
  • 2O11
  • RSS
  • WAP2
  • Simple Machines Forum