RPG Maker MV

RPG Maker MV

I need help with a making a day night cycle
If this is NOT the proper place to put this, I apologize.
Anyway I am working on a game, and used a condition branch with the if option.

I said if the 16th hour is equal to or greater than to turn the tint to night. if Not turn the tint to day.
I got this off a youtube tutorial. The thing is, In this, the day is way longer than the night. I mean day comes at midnight and I really do not want that. So I was wondering what do I have to put into this so that daybreak happens when the hour turns to 16, then night when the hour strikes around 20, then normal or day when the hour variable hits the number 6.

Any help would be appreciated. Thanks.
< >
Showing 1-4 of 4 comments
◢ k r i s ◤ Mar 16, 2019 @ 12:23am 
You're trying to oversimplify the conditions based on RMMV limitations - unfortunately a 24 hour clock is not great at that sort of thing. Fortunately, you have AND conditions via script.
6 <= $gameVariables.value(0001) && $gameVariables.value(0001) <= 16
Assuming your time variable is 0001, you can just put that into your conditional-branch (page 4, Script option) and it will trigger between 6 and 16. If you only need day/night, you could simply make this condition have an else branch for the night time.

---
If you would like to entirely avoid scripting though, the alternative is a rather tedious, though potentially useful alternative of setting a condition for each hour. See "Dusk til Dawn & even Twilight" section from Harbinger's Guide for that. https://steamcommunity.com/sharedfiles/filedetails/?id=1341167707
Their's is much more elaborate than just day and night conditions though.
Last edited by ◢ k r i s ◤; Mar 16, 2019 @ 12:26am
Hajami Mar 16, 2019 @ 12:39am 
Show Pictures of your Eventcode, else we are not able to tell. =)
Edit: Maybe also a Link to the tutorial you used.
Last edited by Hajami; Mar 16, 2019 @ 12:42am
OtakuWarlord2 Mar 16, 2019 @ 9:29am 
https://youtu.be/9006_rH1nu0 this is the vid I watched.
And I’ll take a look at that guide when I can
JohnDoeNews Mar 17, 2019 @ 12:50am 
I've just set up a complete time system myself:
- Time proceeds 1 minute per second. (60x faster)
- Keeps track of time and date (30 days per month)
- When outside, it will get dark during the night, and light during the day
- A variable slowely increases and decreases, making the sun shine of rain fall.

The day-night circle takes 3 steps to go from day time to night time, and 3 steps to go back to day time.

The weather cycles takes 5 steps to go from sunny to stormy, and 5 steps to go back.

You can use the Hours variable to have shops close at night, or have enemies spawn only after midnight. I made a boy in the playground, who runs home when the starts getting dark, and comes back out when the sun comes up. Then it plays in the playground till sun goes down again. Just a simple example of funny things to do.

I am planning on sharing this project for anyone to use, but I am not 100% sure how I will do this.
< >
Showing 1-4 of 4 comments
Per page: 1530 50

Date Posted: Mar 15, 2019 @ 9:21pm
Posts: 4