@Vlue, I mean... For example, do you know Legend of Zelda Ocarina of Time? In Hyrule Field the tone is changing every second because the sun is moving, so, what I was telling is if you can do that the tone changes slowly instead of instantly, for get a more realistic feel rather than "It's 8PM, the sun is hiding *light suddenly disappears*".
Maybe you can do something like an autoincrement/decreasement of R/G/B colors, calculed automatically by the current and next tint screen, being divided to X parts and the result would increase/decrease the value, then you add .to_i for avoid crashes due the use of decimals on "tone_change" (haven't tested it).
For example:
- Night tint is -68,-68,-68,0.
- Starting from 4AM, the tint changes slowly to 34,-34,-68,0 (sunrise) until reaches 6AM, then changes slowly to 0,0,0,0 (noon) until reaches 12PM
- Starting from 3PM, the tint changes slowly to 68,-34,-34,0 (sunset) until reaches 6PM, then changes slowly to -68,-68,-68,0 (night) until reaches 21PM and keeps in that tone until 4AM.
Now, get the number that you must add/remove on each RGB value for reach the next tint, example:
- 21PM Tint to 4AM tint: R -68, G -68, B -68 to R 34, G -34, B -68 is +102, +34, +0.
- From 21PM to 4AM there is (default time in your script) 360 seconds, so... 102/360 = 0,283... 34/360 = 0,094.... 0/360 = 0 😮
- Now the result each calculation is stored and that value being added/removed every second to valR, valG, valB, and when the game reaches 4AM, the values stored there are cleared for calculate the next tint.
- Change the custom tints to arrays, Tone.new won't be used in the configuration anymore.
- And now, add valR, valG, valB to the respective start_tone_change, for example, $game_map.screen.start_tone_change(Tone.new(SUNRISE[0]+valR,SUNRISE[1]+valG,SUNRISE[2]+valB,SUNRISE[3]+valY), tint)
I've tried to do it by myself but... my scripting skill is realllllly poor, but I believe that you would know what to do.