mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2024-11-26 17:46:08 -05:00
completion number and box fadeout
This commit is contained in:
parent
7610fb4205
commit
b12d86c959
1 changed files with 7 additions and 5 deletions
|
@ -430,6 +430,7 @@ class FreeplayState extends MusicBeatSubState
|
||||||
add(fp);
|
add(fp);
|
||||||
|
|
||||||
var clearBoxSprite:FlxSprite = new FlxSprite(1165, 65).loadGraphic(Paths.image('freeplay/clearBox'));
|
var clearBoxSprite:FlxSprite = new FlxSprite(1165, 65).loadGraphic(Paths.image('freeplay/clearBox'));
|
||||||
|
clearBoxSprite.visible = false;
|
||||||
add(clearBoxSprite);
|
add(clearBoxSprite);
|
||||||
|
|
||||||
txtCompletion = new AtlasText(1185, 87, '69', AtlasFont.FREEPLAY_CLEAR);
|
txtCompletion = new AtlasText(1185, 87, '69', AtlasFont.FREEPLAY_CLEAR);
|
||||||
|
@ -466,7 +467,7 @@ class FreeplayState extends MusicBeatSubState
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
exitMovers.set([fp, txtCompletion, fnfHighscoreSpr],
|
exitMovers.set([fp, txtCompletion, fnfHighscoreSpr, txtCompletion, clearBoxSprite],
|
||||||
{
|
{
|
||||||
x: FlxG.width,
|
x: FlxG.width,
|
||||||
speed: 0.3
|
speed: 0.3
|
||||||
|
@ -509,6 +510,7 @@ class FreeplayState extends MusicBeatSubState
|
||||||
fp.visible = true;
|
fp.visible = true;
|
||||||
fp.updateScore(0);
|
fp.updateScore(0);
|
||||||
|
|
||||||
|
clearBoxSprite.visible = true;
|
||||||
txtCompletion.visible = true;
|
txtCompletion.visible = true;
|
||||||
intendedCompletion = 0;
|
intendedCompletion = 0;
|
||||||
|
|
||||||
|
@ -752,13 +754,13 @@ class FreeplayState extends MusicBeatSubState
|
||||||
switch (txtCompletion.text.length)
|
switch (txtCompletion.text.length)
|
||||||
{
|
{
|
||||||
case 3:
|
case 3:
|
||||||
txtCompletion.x = 1185 - 10;
|
txtCompletion.offset.x = 10;
|
||||||
case 2:
|
case 2:
|
||||||
txtCompletion.x = 1185;
|
txtCompletion.offset.x = 0;
|
||||||
case 1:
|
case 1:
|
||||||
txtCompletion.x = 1185 + 24;
|
txtCompletion.offset.x = -24;
|
||||||
default:
|
default:
|
||||||
txtCompletion.x = 1185;
|
txtCompletion.offset.x = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
handleInputs(elapsed);
|
handleInputs(elapsed);
|
||||||
|
|
Loading…
Reference in a new issue