# Screen tint based on variable not working?

#### NBalchemist

##### Villager
I'm attempting to get a day and night cycle working and I'm having trouble with the screen tints. I'm using a parallel common event and 3 variables, minutes, hours and days. Every 60 frames adds 1 to minutes, at 60 minutes it adds 1 to hours and subtracts 60 from minutes. At 24 hours, it adds 1 to days and subtracts 24 from hours. I made an item to check the time variables in game and made a parallel event on the map for screen tints, when the hours are equal or greater to 16, it should tint to sunset. At 19 or greater it should tint to night, 5 or greater to sunrise and 7 or greater back to normal.

I'm using 4 conditional branches with no "else" and I check the item to see what the variables are at. The screen never tints even when the hours are past 16 and I'm not sure how to make this work. Help?

Edit: I'd also love to put in a random or semi-random weather system. Example: Day 5 of one playthrough is a sunny, normal day, but day 5 in a different playthrough is a rainy day.

Last edited:

### Latest Profile Posts

Turning a specific vibe into reality is incredibly difficult. For instance, this song is one of the ones I listen to when working on my post apocalyptic project, and getting it's "feeling" into the game has been a real challenge.

I don't just wanna regurgitate the numbers I see, I wanna actually understand the calculations I'm making so I'm probably gonna make a post later with some calculations and what I THINK they mean to get some advice and corrections.

Edit: All (Most) of these will be tested in game prior. I just wanna make sure I understand what's going on under the hood if you will.
my girlfriend calls all my little chibi art cute lol... funny considering that wasn't the original art style of the game.
100 problems in RMMZ 100 more problems take one down pass it around 101 Problems in RMMZ
Made some progress on my game, mostly mapping. Learned quite a bit in the process!.

113,778
Messages
1,077,361
Members
147,807
Latest member