Day and Night RMXP

  • 386
    Posts
    19
    Years
    • Seen Apr 17, 2009
    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
     
    Last edited:
    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!
     
    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.
     
    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? :\
     
    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?
     
    Back
    Top