top of page

Creating a Sprite Animation

Writer's picture: Deano SmithDeano Smith

Updated: Oct 15, 2020

First Leigh walked us through everything and we did the whole task as a class together using a knight sprite and the outcome was a cool idle animation. Then we went through and did it on our own using a different sprite, I originally chose Mario but the cutting of the the sprite was really tricky and didn't work, so I chose Mega man instead. Before anything, inside the assets I created another folder called sprites where I put all the assets.

The cutting up process of this sprite was way easier than and I did it first attempt.

I took the first sprite and placed it in the hierarchy along with a flooring sprite. With both sprites I had to add collision with each other. I also added a Rigid body to both and changed the flooring gravity to 0 so mega man can stand on it.

I then added a new folder inside the assets called Animation where all the animating took place. Inside the folder I right clicked and created an animation controller as well as took all the sprite frames and made it into an animation, by shift clicking the first and last sprite, and with all of them highlighted in blue I right clicked and created an animation and dragging and dropping it into the animation folder.

After that, I double clicked on the Animation Controller and dragged the Animation into it.

Next I double clicked on the orange 'Animation' rectangle and made it loop endlessly, then I added a Animator component to the mega man sprite and dragged the controller to apply to the different sprites movements, and this is the final outcome:


2 views0 comments

Recent Posts

See All

留言


Post: Blog2_Post
  • Facebook
  • Twitter
  • LinkedIn

©2020 by Dean Smith NEXTGEN Year 2. Proudly created with Wix.com

bottom of page