for opponent
This commit is contained in:
@ -452,7 +452,7 @@ class Character extends FlxSprite
|
||||
/**
|
||||
* FOR GF DANCING SHIT
|
||||
*/
|
||||
public function dance(forced:Bool = false)
|
||||
public function dance(forced:Bool = false, altAnim:Bool = false)
|
||||
{
|
||||
if (!debugMode)
|
||||
{
|
||||
@ -476,7 +476,10 @@ class Character extends FlxSprite
|
||||
else
|
||||
playAnim('danceLeft');
|
||||
default:
|
||||
playAnim('idle', forced);
|
||||
if (altAnim && animation.getByName('idle-alt') != null)
|
||||
playAnim('idle-alt', forced);
|
||||
else
|
||||
playAnim('idle', forced);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user