How do I create my own character for a game? (SOLVED)

I dont wish to use the frog given to me in the tutorial. How may i import my own sprites and use them?

  1. Add a png image texture to your project folder.
  2. Create an atlas file.
  3. Add the png to the atlas file. Optionally create an animation out of multiple frames.
  4. Add a sprite to a game object as a component.
  5. 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.

2 Likes

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.

2 Likes

Ah, yes, that’s true! Forgot that!

Thank You, been very helpful. Now i’m able to implement characters in my games.

2 Likes