I dont wish to use the frog given to me in the tutorial. How may i import my own sprites and use them?
- Add a png image texture to your project folder.
- Create an atlas file.
- Add the png to the atlas file. Optionally create an animation out of multiple frames.
- Add a sprite to a game object as a component.
- Set the sprite’s atlas to the new atlas, and set the animation to the name of the sprite or the animation you created.
The frog I believe is a set of flipbook frames. You can also make characters with Spine/Dragonbones for smoother animations.
The frog in the getting started tutorial is actually a spine object.
But I agree with your recommendation that adding simple flipbook animations is easier and more readily available from sources such as Kenney etc.
For a super simple and minimal example showing what @Pkeod is suggesting you can have a look at this sprite animation example:
CODE: https://github.com/britzl/publicexamples/tree/master/examples/play_animation
DEMO: http://britzl.github.io/publicexamples/play_animation/index.html
You’re right. In the endless runner it’s a spine scene and in the platformer it’s flipbook.
Ah, yes, that’s true! Forgot that!
Thank You, been very helpful. Now i’m able to implement characters in my games.