mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2024-11-27 01:55:52 -05:00
Make the error message a bit better if an Animate atlas fails to parse.
This commit is contained in:
parent
32b21e21b2
commit
8943cd117e
1 changed files with 10 additions and 3 deletions
|
@ -76,10 +76,17 @@ class AnimateAtlasCharacter extends BaseCharacter
|
|||
{
|
||||
trace('Creating Animate Atlas character: ' + this.characterId);
|
||||
|
||||
try
|
||||
{
|
||||
var atlasSprite:FlxAtlasSprite = loadAtlasSprite();
|
||||
setSprite(atlasSprite);
|
||||
|
||||
loadAnimations();
|
||||
}
|
||||
catch (e)
|
||||
{
|
||||
throw "Exception thrown while building FlxAtlasSprite: " + e;
|
||||
}
|
||||
|
||||
super.onCreate(event);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue