Skip to content

XML Spritesheet Reading #2324

Answered by TheHENOOB
DrakerMaker asked this question in Q&A
Discussion options

You must be logged in to vote

ninjamuffin99 (Creator of Friday Night Funkin') made a tutorial on how to use Adobe Animate or Adobe Flash art:
https://ninjamuffin99.newgrounds.com/news/post/1090580

But i think that's what you need (note this is inside of a class that is extending FlxSprite)

var tex = FlxAtlasFrames.fromSparrow('assets/images/HoboMoveSet.png', 'assets/images/HoboMoveSet.xml'); 
frames = tex;

animation.addByPrefix('idle', 'HoboIdle', 24, true); // the HoboIdle or HoboGun is the name of the movie clip for the animation
animation.addByPrefix('gun', 'HoboGun', 24, true);

animation.play('gun');

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by DrakerMaker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants