mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2025-04-12 06:54:41 -04:00
fix: Fix texture atlases looping indefinitely
This commit is contained in:
parent
d31ef12363
commit
ef7c9afd14
1 changed files with 2 additions and 0 deletions
|
@ -66,6 +66,8 @@ class FlxAtlasSprite extends FlxAnimate
|
|||
throw 'FlxAtlasSprite not initialized properly. Are you sure the path (${path}) exists?';
|
||||
}
|
||||
|
||||
onAnimationComplete.add(cleanupAnimation);
|
||||
|
||||
// This defaults the sprite to play the first animation in the atlas,
|
||||
// then pauses it. This ensures symbols are intialized properly.
|
||||
this.anim.play('');
|
||||
|
|
Loading…
Add table
Reference in a new issue