Make the error message a bit better if an Animate atlas fails to parse.

This commit is contained in:
EliteMasterEric 2024-03-26 01:12:46 -04:00
parent 32b21e21b2
commit 8943cd117e

View file

@ -76,10 +76,17 @@ class AnimateAtlasCharacter extends BaseCharacter
{ {
trace('Creating Animate Atlas character: ' + this.characterId); trace('Creating Animate Atlas character: ' + this.characterId);
try
{
var atlasSprite:FlxAtlasSprite = loadAtlasSprite(); var atlasSprite:FlxAtlasSprite = loadAtlasSprite();
setSprite(atlasSprite); setSprite(atlasSprite);
loadAnimations(); loadAnimations();
}
catch (e)
{
throw "Exception thrown while building FlxAtlasSprite: " + e;
}
super.onCreate(event); super.onCreate(event);
} }