Hello everyone, I want to keep it simple, so the title basically says it all.
I have a sprite sheet with 2 animations of 4 frames each.
I’ve attached ‘Animation’ component to my sprite but I don’t know how to create the animations so I can attach em to the ‘Animation’ Component.
What are the steps I would need to take to create an animation?
For now, the only way I can animate is this:
When I need this animation to play(for example pressing a button) I do this:
int index = (int)(Time.timeSinceLevelLoad * framesPerSecond);
index = index % spritesUp.Length;
spriteRenderer.sprite = spritesUp [index];
I took a spritesheet image and added the frames.
I was told using Animation is quite easy and saves a lot of time but I haven’t been introduced to it.
Thanks for your help and time.