Day/night cycle

Hello everyone fairly new here but quite clued up so far. My problem is I've implemented a weather cycle in my game which is working fine, now I've tried to do the same with a 4 piece cycle (dawn day dusk night) and it all seems good but I'm having real trouble keeping the state of time whilst moving maps (interior to exterior, exterior vice versa) like I said I'm new to the forum but with the majority of what I've picked up so far I like to think I'm more than capable of creating a half decent game any help would be greatly appreciated I'm trying to create my game with as little scripting as possible just using the event system. I'm more than happy to pay someone to help me implement the time cycle hand in hand with my weather cycle and help me to fully master the skill of doing this whilst entering/exiting maps. I have the rest figured (events triggering during certain time/weather stages) just need a helping hand to get me going! All of you guys do a really great job and I know that I can create a truly great RPG with a little help from this forum. TIA everyone!
Welcome to the forums! A good system that I've found is to use a variable to keep track of what time (can be in frames/in seconds/in whatever arbitrary unit you need it in) it is, which is preserved across maps. Then, you can use a common event to change the variable after however many frames.
Welcome to the forums! A good system that I've found is to use a variable to keep track of what time (can be in frames/in seconds/in whatever arbitrary unit you need it in) it is, which is preserved across maps. Then, you can use a common event to change the variable after however many frames.
Can you please put this in event terms, I can show you my current inside/outside events to trigger and re trigger but the issue is going from map to map. HAPPY NEW YEAR in advance

If you could help me so that I can post my current switches/variables Just give me a pop and let me know how to do it. More than happy to upload it!! 6 minutes to new year!!
event terms
Sorry, are you saying that you don't want to use a common event, or are you saying that you need a visual?
Edit:
If you could help me so that I can post my current switches/variables Just give me a pop and let me know how to do it. More than happy to upload it!! 6 minutes to new year!!
I mean, if you want me to provide a direct example of how it would work in context of your game specifically, all I need to know are a variable that you haven't used for something else yet and a switch that you can use (It can be one that you haven't used already, one that will be exclusively for time-tracking, or one that simply signifies the start of the part of the game where you want to have the day-night cycle {Usually just after the tutorial, if it's included}).
Sorry, are you saying that you don't want to use a common event, or are you saying that you need a visual?
Edit:

I mean, if you want me to provide a direct example of how it would work in context of your game specifically, all I need to know are a variable that you haven't used for something else yet and a switch that you can use (It can be one that you haven't used already, one that will be exclusively for time-tracking, or one that simply signifies the start of the part of the game where you want to have the day-night cycle {Usually just after the tutorial, if it's included}).
Is there a way I can link/send my game to you? Sorry new to this lol

I am currently using an event which works on variables and switches

Variable and switch spaces free from 4-28 which are being utilised by current system (which is failing switching from map to map) if you can let me know how to send you a direct link to the files/my game I would be more than happy to do so. I've sussed the parallel process event's from normal map to interior/exterior but for some reason my script is failing to take effect after entering and then exiting a new map.
Variable and switch spaces free from 4-28 which are being utilised by current system (which is failing switching from map to map) if you can let me know how to send you a direct link to the files/my game I would be more than happy to do so. I've sussed the parallel process event's from normal map to interior/exterior but for some reason my script is failing to take effect after entering and then exiting a new map.
If you REALLY need me to personally take a look, upload it to something like dropbox and DM me the link. But I'm like 99% sure this can be solved by following a step-by-step, which I can provide if you need me to.
If you REALLY need me to personally take a look, upload it to something like dropbox and DM me the link. But I'm like 99% sure this can be solved by following a step-by-step, which I can provide if you need me to.
If you could that would be great. I'll just delete my current system along with the switch and variables. Would this also solve the problem of the time resetting whilst changing maps? Thank you for your help.
You could also try Driftwood's method. I modelled it after his tutorial, and just added months and years to keep track of the seasons, and an additional weather variable.
You could also try Driftwood's method. I modelled it after his tutorial, and just added months and years to keep track of the seasons, and an additional weather variable.
I just need a 4 part, morning afternoon evening night cycle. Steps on how to pause the time then resume it (inside&outside) and a simple 4 part weather system (normal, sunny, rain and storm) please someone help me out by writing one out. I've started a new game so completely clear common events switches and variables, I'll just paste my maps and the rest over from my other projects. Tia
I just need a 4 part, morning afternoon evening night cycle. Steps on how to pause the time then resume it (inside&outside) and a simple 4 part weather system (normal, sunny, rain and storm) please someone help me out by writing one out.
My system's probably far from flawless, but here's a step-by-step:

1) Create a Common Event
For organizational purposes, name it something simple, like "Time keeping". More importantly, you're going to want to set the trigger to "Parallel Process". Set the Conditional Switch to a switch like "Time runs?". This ensures that the Common Event will run in the background of all screens without interfering with gameplay when the switch is on. In other words, turning on the switch will later allow time to pass, and turning off the switch will not allow time to pass.
Spoiler: Example
1.PNG

2) Add the time keeping bit
In the Contents section, add "Wait 1 frame". Select a variable to use to keep track of what time it is, and label it something simple, like "Time". After the "Wait 1 Frame" in the Contents Section, add "Control Variables -> Variable: Time -> Add 1".
Spoiler: Example
2.PNG

You should now have what basically amounts to an invisible stopwatch. I know you probably want stuff to actually happen at certain times, like bells tolling "on the hour" or tinting the screen to indicate the time of day, etc. but to help you with that, I need to know: how long do you want each phase of your day/night cycle to be?
Morning afternoon evening and night, all to last 5 mins each
Morning afternoon evening and night, all to last 5 mins each
Okay, so, if my calculations are correct...
5 minutes -> 300 seconds -> 18000 frames

Since each phase lasts the same amount of time, you can consolidate (yay!!!)!

3) Tracking the day phase (Possibly optional, depending on what you want the time of day to actually do)
Set up a conditional "if time >= (length of phase, 18000 in this case)". In that conditional, add a "Control Variables -> Variable: (Something simple, like 'Day Phase') -> Add 1". In that same conditional, add another conditional "if day phase > 3". Inside that conditional, add "Control Variables -> Variable: day phase -> set to 0". So, morning is when day phase=0, afternoon when day phase=1, evening when day phase=2, and night when day phase=3.
Spoiler: Example
3.PNG
Now, I listed a few examples of what you could do earlier, but for real, is there anything you want to happen visually/audibly to indicate that the time of day has changed?
Yeah I'll be using tints, at night I'll pause the bgm to play bgs then continue when it's morning again. I'll also look to be adding random weather changes with normal, sunny, rainy and stormy (no snow)
I'll also look to be adding random weather changes with normal, sunny, rainy and stormy (no snow)
I can help with that too, but I'm guessing that you probably don't want the weather to be tied to the time.
Yeah I'll be using tints,
Do you have specific tints in mind or can I just use filler tints for you to adjust later?


Edit: I forgot a super important component of Step 3! You also need to add "Control Variables -> Variable: Time -> set to 0" in the first conditional (without putting it in the second one)
Spoiler: Example
4.PNG
No weather separate as wanted it run on a random generator, yeah basic tints is fine I can adjust and do the other stuff I plan on using, nice one.
Yeah I'll be using tints, at night I'll pause the bgm to play bgs then continue when it's morning again. I'll also look to be adding random weather changes with normal, sunny, rainy and stormy (no snow)
Alright, so, to do the screen tint:

4) Applying the tints (Repeat for every phase of the day)
Create a conditional outside any of the others "If day phase = (different for every phase of the day)". Inside that conditional, put a "Tint Screen -> Adjust the tint to match the time of day you want -> Time: 1 frames -> don't wait for completion".
Spoiler: Example
5.PNG

5) Changing the Audio at Night
Just before the conditional "if day phase > 3", add another conditional "if day phase == 4". Inside that conditional, add a "Replay BGM" and a "Fadeout BGS". Just after the conditional "if day phase > 3", add another conditional "if day phase == 3". Inside that conditional, add a "Save BGM", a "Fadeout BGM", and a "Play BGS (whatever sound you're using)".
Spoiler: Example
6.PNG

Anything else you need before we tackle weather?
I'd just like a quick heads up about changing maps. Had real trouble before with pausing the time of day/night it is when entering interior/dungeon. Then leaving again for the time to pick up seemlessly. If I have to do this using an event for each interior map then could you help me with creating the event so I can copy and paste it to reuse each time, thanks.



This is for MV but I thought maybe this could help in some way?
pausing the time of day/night it is when entering interior/dungeon.
I can help you with that, but are you sure you want time to actually stop whenever you enter a building? It'd be just as possible to allow time to pass without necessarily seeing the change from indoors.
I can help you with that, but are you sure you want time to actually stop whenever you enter a building? It'd be just as possible to allow time to pass without necessarily seeing the change from indoors.
Then that is definitely what I would like please lol (sorry noob didn't think that would be possible)

Original thread: https://forums.rpgmakerweb.com/threads/day-night-cycle.131671/