Fix easter egg idle and cartoon to play as intended
This commit is contained in:
committed by
Cameron Taylor
parent
1ac91b35ca
commit
a1cf76e89c
@@ -100,18 +100,6 @@ class FreeplayDJ extends FlxAtlasSprite
|
||||
{
|
||||
playFlashAnimation(animPrefix, true, false, true);
|
||||
}
|
||||
|
||||
if (getCurrentAnimation() == animPrefix && this.isLoopComplete())
|
||||
{
|
||||
if (timeIdling >= IDLE_EGG_PERIOD && !seenIdleEasterEgg)
|
||||
{
|
||||
currentState = IdleEasterEgg;
|
||||
}
|
||||
else if (timeIdling >= IDLE_CARTOON_PERIOD)
|
||||
{
|
||||
currentState = Cartoon;
|
||||
}
|
||||
}
|
||||
timeIdling += elapsed;
|
||||
case NewUnlock:
|
||||
var animPrefix = playableCharData.getAnimationPrefix('newUnlock');
|
||||
@@ -253,6 +241,15 @@ class FreeplayDJ extends FlxAtlasSprite
|
||||
else if (name == playableCharData.getAnimationPrefix('idle'))
|
||||
{
|
||||
// trace('Finished idle');
|
||||
|
||||
if (timeIdling >= IDLE_EGG_PERIOD && !seenIdleEasterEgg)
|
||||
{
|
||||
currentState = IdleEasterEgg;
|
||||
}
|
||||
else if (timeIdling >= IDLE_CARTOON_PERIOD)
|
||||
{
|
||||
currentState = Cartoon;
|
||||
}
|
||||
}
|
||||
else if (name == playableCharData.getAnimationPrefix('confirm'))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user