mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2025-03-21 20:39:52 -04:00
nicer color tweens
This commit is contained in:
parent
fc3b83367f
commit
41cb3d93b2
1 changed files with 3 additions and 1 deletions
|
@ -590,7 +590,9 @@ class StoryMenuState extends MusicBeatState
|
|||
{
|
||||
// Both the previous and current level were simple backgrounds.
|
||||
// Fade between colors directly, rather than fading one background out and another in.
|
||||
FlxTween.color(levelBackground, 0.4, previousColor, currentColor);
|
||||
// cancels potential tween in progress, and tweens from there
|
||||
FlxTween.cancelTweensOf(levelBackground);
|
||||
FlxTween.color(levelBackground, 0.9, levelBackground.color, currentColor, {ease: FlxEase.quartOut});
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue