PDA

View Full Version : Dawn, Day, Dusk and Night system for all RM series makers


charmander,eleon,zard#2
March 31st, 2005, 11:40 PM
Note- This was posted in RMXP.net forums by a user named 'taylor' but I have made changes to it so it can be fit inside a Pokemon RPG.

This has been used in my game and it works fine. I will how screenshots later.(If anyone wants system for the colours when there is a storm ask me since I am working on it.)

In an outdoor map make a new event set it "Parallel Process" and make it have no graphic and do the following in the event page.

<>Wait: 200 Frames
<>Wait: 200 Frames
<>Tint Screen: (0,0,0,119), @20
<>Wait: 400 Frames
<>Tint Screen: (0,0,34,170), @20
<>Wait: 200 Frames
<>Wait: 200 Frames
<>Tint Screen: (34,0,-17,119), @20
<>Wait: 100 Frames
<>Wait: 100 Frames
<>Tint Screen: (0,0,0,0), @20

If you want the time period to be longer then just increase the amount of frames in wait command. I would'nt reccomend you editng the colours in tint screen command unless you know what you are doing.

If you are using this please put my name (Krishnan) and taylor's name in the credits.

Thank you.

Jeff_PKLight
April 1st, 2005, 03:34 PM
Wait a minute.... wouldn't that just make the event loop again after you go to another map?

Example: It is evening outside. You go to another map and it becomes morning again.

charmander,eleon,zard#2
April 1st, 2005, 09:55 PM
0.o didn't think of that well maybe if you make it a commomn event and put it on all the maps? I guess then it would work.

Jeff_PKLight
April 1st, 2005, 09:57 PM
Perhaps make a conditional branch. Like it turns on Morning first. When it becomes day, it turns off the Morning switch and turns on the Day switch. Something like that could fix the problem. :)

~Jeff

Alistair
April 1st, 2005, 10:20 PM
Yeah, that happened to me too. I tried adding the events to other maps, but it did not work.

Jeff_PKLight
April 1st, 2005, 10:57 PM
I just used common sense. :D
It should be something like this:

<>Switch Morning = ON
<>Conditional Branch if Morning is ON
..<>Wait: 200 Frames
..<>Wait: 200 Frames
..<>Tint Screen: (0,0,0,119), @20
..<>Wait: 400 Frames
..<>Switch Morning = Off
..<>Switch Day = On
<>End
<>Conditional Branch if Day is ON
..<>Wait: 200 Frames
..<>Wait: 200 Frames
..<>Tint Screen: (0,0,0,119), @20
..<>Wait: 400 Frames
..<>Switch Day = Off
..<>Switch Evening = On
<>End
..
..
..and so on...

charmander,eleon,zard#2
April 2nd, 2005, 08:33 AM
Thanks Jeff you saved me a lot of research time. I am gonna check this one out.

Pokemon: Be in the Game!
April 3rd, 2005, 12:04 AM
Urmmmm.... I used the system, and how do i make the event pause to go inside a building without the event starting all over from the morning phase?

Jeff_PKLight
April 3rd, 2005, 09:38 AM
Well, make the outdoor event parralel process and turns on when a switch, such as dayandnight, is on. Turn the dayandnight switch on when you first start the game, and when you enter a building, turn dayandnight off. That means the tinting and stuff outside still works, but is turned off when you enter a building. Turn dayandnight on again when you head outside.

Pokemon: Be in the Game!
April 21st, 2005, 06:31 PM
i did it, but i dont understand.