1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2025-01-13 07:37:25 +00:00

GF now ducks (a little glitchy tho)

This commit is contained in:
Eric Myllyoja 2022-06-12 00:53:39 -04:00
parent 705d0ed5b9
commit 05148ee4f0

View file

@ -224,7 +224,7 @@ class Bopper extends FlxSprite implements IPlayStateScriptedClass
*/
public function playAnimation(name:String, restart:Bool = false, ?ignoreOther:Bool = false):Void
{
if (!canPlayOtherAnims)
if (!canPlayOtherAnims && !ignoreOther)
return;
var correctName = correctAnimationName(name);
@ -252,10 +252,12 @@ class Bopper extends FlxSprite implements IPlayStateScriptedClass
/**
* @param name The animation to play.
* @param duration The duration in which other (non-forced) animations will be skipped, in seconds.
* @param duration The duration in which other (non-forced) animations will be skipped, in seconds (NOT MILLISECONDS).
*/
public function forceAnimationForDuration(name:String, duration:Float):Void
{
// TODO: Might be nice to rework this function, maybe have a numbered priority system?
if (this.animation == null)
return;