mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2025-11-25 21:55:55 +00:00
Tinkering with atlassprite
This commit is contained in:
parent
17a48bfc2b
commit
c81f041695
|
|
@ -169,19 +169,6 @@ class FlxAtlasSprite extends FlxAnimate
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
anim.onComplete.removeAll();
|
|
||||||
anim.onComplete.add(function() {
|
|
||||||
if (loop)
|
|
||||||
{
|
|
||||||
this.anim.play(id, restart, false, startFrame);
|
|
||||||
this.currentAnimation = id;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
onAnimationComplete.dispatch(id);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
looping = loop;
|
looping = loop;
|
||||||
|
|
||||||
// Prevent other animations from playing if `ignoreOther` is true.
|
// Prevent other animations from playing if `ignoreOther` is true.
|
||||||
|
|
@ -191,7 +178,7 @@ class FlxAtlasSprite extends FlxAnimate
|
||||||
// goToFrameLabel(id);
|
// goToFrameLabel(id);
|
||||||
trace('Playing animation $id');
|
trace('Playing animation $id');
|
||||||
// Only call goToFrameLabel if there is a frame label with that name. This prevents annoying warnings!
|
// Only call goToFrameLabel if there is a frame label with that name. This prevents annoying warnings!
|
||||||
if (getFrameLabelNames().indexOf(id) != -1)
|
if (getLabelIndex(id) != -1)
|
||||||
{
|
{
|
||||||
goToFrameLabel(id);
|
goToFrameLabel(id);
|
||||||
fr = anim.getFrameLabel(id);
|
fr = anim.getFrameLabel(id);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue