Very gradual tint screen in battle

Hello!

I have a boss battle that is set to a timer (that also ties to the music playing during the fight). When there is a set amount of time left, I'd like for the screen to begin to slowly darken. I've tried using Tint Screen, but it only works for a few seconds at a time, whereas I'd like for the darkening effect to extend over nearly a minute and thirty seconds while the battle continues. I've tried to 'stack' Tint Screen events, and use conditional branches set to the timer, but I think there's too many and they end up conflicting each other and the darkening stops after a set amount and won't go all the way to black.

I'd guess maybe I could call a common event, but I don't think it'd work out too much either, given I believe Tint Screen can only work for about 6 seconds or so at a time, and I don't want the battle to pause or be interrupted during the darkening, so I can't really put any 'wait' commands between tint screen commands.

Any help would be greatly appreciated, thank you!
Try this in a Script call:

Code:
$game_troop.screen.start_tone_change(Color.new(r, g, b, a), 5400)
where r, g, b and a are the color tone that you'd normally put into the Tint Screen command.
The 'a' would be the value set to "gray", right? I input it as 0 (like default in Tint Screen) and got this error:

error_zps55dc95b1.png
Show me the script. If you mean "gray" as in the WORD "gray", then no. They all need to be numbers.
I set the numbers as -255, -255, -255, 0 and got the error. I also tried setting the last value as 1 to see if that'd make a difference, but it was the same error.

I also tried to use a common event call, but it ended up with the same thing. This is where I put it, in the battle troop Battle Event area:

ScriptScreen_zps808da3ea.png


The first event page is just setting the timer and playing the chosen BGM.

I might have done this wrong, I haven't really ever done "script calls" >_<
haha - my mistake.


Get rid of Color.new and use Tone.new instead.


Let's see if that behaves any better 🙂
Yes that worked much better! Thank you so much, that was driving me up the wall XD I truly appreciate it!
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/very-gradual-tint-screen-in-battle.25470/