PNG animation?
PNG animation?
Wednesday, March 29, 2017 - 04:00
Hello everyone :) I am very new to game making world and currently I am making an android game with an engine.
I have found a really cool dragon on this wbesite and I would like to know how can I make it to my game. When I download it there is dragon in every position in 1 image. The engine I work with requires each image for animation seperatly. How can I do that?
The dragon I downloaded: https://opengameart.org/content/wyvern-1
That's a spritesheet.
Each image represents a frame in the animation. Run them in order to see the entire animation sequence.
Some engines will separate spritesheets for you with code, others will require you to create a separate "object" to hold the frames. It really depends on the engine you're using...check out the documentation for how to package and run each frame.
For those who were lured here by the title "PNG Animation" - there is a companion format to PNG, called MNG, which was supposed to serve as animation format. Unfortunately it never caught on like animated GIFs did:
http://www.libpng.org/pub/mng/
https://en.wikipedia.org/wiki/Multiple-image_Network_Graphics
I don't believe OP is asking about an animated version of the PNG format. I think the question is "how do I split a spritesheet into a set of individual images?"
Also: that aint no dragon! :P
--Medicine Storm