This commit is contained in:
Abnormal 2025-04-04 22:33:50 +00:00 committed by GitHub
commit 9e549cfede
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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('');