PDA

View Full Version : Day and Night RMXP


Swizzler121
September 18th, 2005, 04:51 AM
Since the other Day and night is for 2k3 I have desingned one for Rgp maker XP:

Bugs:slow light up when enter buildings

Here it is!

Credit to Slyph!!

Well, for the bugs, you just need to go to the buildings and make an event to Parallel Process and then:

<>Tint Screen: (0, 0, 0, 0) @ 0
<>Tint Screen: (0, 0, 0, 0) @ 20

But, for this to work, you'll have to change the day night system to a Common Event (also in Parallel Process):

<>Wait 10 frames
<>Variable: Seconds + = 1
<>Conditional Branch: If Variable Seconds == X
<>Variable: Seconds = 0
<>Variable: Hours + = 1
<>
<>Else Handler
<>
End
<>Conditional Branch: If Variable Hours == 0
<>Tint Screen: (0,0,0,0) @ 20
<>
<>Else Handler
<>
End
<>Conditional Branch: If Variable Hours == 12
<>Tint Screen: (The night tint you want) @ 20
<>
<>Else Handler
<>
End
<>Conditional Branch: If Variable Hours == 24
<>Variable: Hours = 0
<>
<>Else Handler
<>
End

Replace the (X) for the time you want to be an hour.



And then it should repeat, it does on my game!!
If you have any improvements to this please post them here, the color of night is kind of leaniant, you may even want to make an evening where every thing changes orange before night!

(I made this to try and rebuild my rep) HEHE

Webmaster Tyler
September 18th, 2005, 05:16 AM
You could put the code as a commen event then trigger it by switches
This is very useful
*Gives Rep*
Rep Doesnt work i forgot about that

Swizzler121
September 18th, 2005, 06:48 AM
I updated it to work with buildings, but I don't completley know if it works, I need to do some more testing before I update!

Darn, the new one doesn't work. for some reason it's not checking the conditonal branch!

QFred
September 21st, 2005, 08:44 PM
What are frames? Please, I really need the answer...

Dream Illusionist
September 21st, 2005, 09:00 PM
Well, for the bugs, you just need to go to the buildings and make an event to Parallel Process and then:

<>Tint Screen: (0, 0, 0, 0) @ 0
<>Tint Screen: (0, 0, 0, 0) @ 20

But, for this to work, you'll have to change the day night system to a Common Event (also in Parallel Process):

<>Wait 10 frames
<>Variable: Seconds + = 1
<>Conditional Branch: If Variable Seconds == X
<>Variable: Seconds = 0
<>Variable: Hours + = 1
<>
<>Else Handler
<>
End
<>Conditional Branch: If Variable Hours == 0
<>Tint Screen: (0,0,0,0) @ 20
<>
<>Else Handler
<>
End
<>Conditional Branch: If Variable Hours == 12
<>Tint Screen: (The night tint you want) @ 20
<>
<>Else Handler
<>
End
<>Conditional Branch: If Variable Hours == 24
<>Variable: Hours = 0
<>
<>Else Handler
<>
End

Replace the (X) for the time you want to be an hour.

@QFred: Frames is...let's say, a speed/time measure. 10 frames ia aprrox. 1 second.

Swizzler121
September 21st, 2005, 09:03 PM
Thank you slyph, I will apply this and see if it works, your help is greatly appreciated!

Also, Will this continue throughout the game? Or will it just work on the current map? :\

Dream Illusionist
September 21st, 2005, 09:07 PM
In all of the game, except the places where you put the other event to always be day.

Swizzler121
September 26th, 2005, 06:17 PM
OK, I got the resolution working on my game, and Now it completly works! the only thing I would change is that when you come outside during night it is daylight and it has to fade again, Slyph, is there a way to make it with no fade?

OverTheBelow
October 12th, 2005, 05:10 PM
Hey Swiz, You can turn off the tint when you enter the building, Just put
Tint Screen: (0, 0, 0, 0) @ 20
on the event (to enter the building and exit the building.)

Swizzler121
October 12th, 2005, 11:45 PM
yeah, we already figured that out, the new event D&N system works, thanks to Slyph.