• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Day and Night RMXP

  • 386
    Posts
    18
    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:

    Webmaster Tyler

    Owner of Pokemon Help
  • 490
    Posts
    19
    Years
    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
     
  • 386
    Posts
    18
    Years
    • Seen Apr 17, 2009
    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!
     

    Dream Illusionist

    //Teenager with S.T.Y.L.E.//
  • 976
    Posts
    19
    Years
    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.
     
  • 386
    Posts
    18
    Years
    • Seen Apr 17, 2009
    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? :\
     
  • 386
    Posts
    18
    Years
    • Seen Apr 17, 2009
    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