philly charts and hair

This commit is contained in:
Cameron Taylor 2020-12-11 07:55:39 -05:00
parent eb017da89e
commit b110f8bbdb
5 changed files with 21 additions and 6 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -210,6 +210,13 @@ class Character extends FlxSprite
}
}
switch (curCharacter)
{
case 'gf':
if (animation.curAnim.name == 'hairFall' && animation.curAnim.finished)
playAnim('danceRight');
}
super.update(elapsed);
}
@ -225,12 +232,16 @@ class Character extends FlxSprite
case 'bf':
case 'gf':
danced = !danced;
if (!animation.curAnim.name.startsWith('hair'))
{
danced = !danced;
if (danced)
playAnim('danceRight');
else
playAnim('danceLeft');
}
if (danced)
playAnim('danceRight');
else
playAnim('danceLeft');
case 'spooky':
danced = !danced;

View File

@ -1392,6 +1392,7 @@ class PlayState extends MusicBeatState
if (trainSound.time >= 4700)
{
startedMoving = true;
gf.playAnim('hairBlow');
}
if (startedMoving)
@ -1414,6 +1415,7 @@ class PlayState extends MusicBeatState
function trainReset():Void
{
gf.playAnim('hairFall');
phillyTrain.x = FlxG.width + 200;
trainMoving = false;
// trainSound.stop();