Hi guys!
I’m working on a personal 2D game for a school project. I’ve been on stuck on this problem for the longest time. (3 weeks)
I’ve scoured the Internet trying to figure this out, but I can’t find anything. So, I wanted to ask about animations. I’m trying to create an animation and make it play within the game. I’ve got the sprite sheets down and it’s all set up with the Animations and the Controllers. I try to start to implement the animations within the Animator window, but it doesn’t even show up when I try to put it in. This is my first time working within Unity and I’m just learning about the Animator and how to actually use it within code so that my player can move around on keypress. (I’ve got the move script already down, I’m just confused on actually implementing front-end portions for the game).
Please, help would be much appreciated!
Have you checked the 2D section of the learn section? Last I checked this was covered well.
I’ve gone through most of the tutorials in the 2D section of the learn section over the past couple of months trying to learn Unity on my own. I’ve got somewhat an okay beginning to how to start making a game. Unfortunately, I tried looking through the resources again and I can’t find anything along the lines of my problem that can fix it. I’m not quite sure if I’m doing something wrong, or if it’s actually a problem within the program.
It’s unlikely that it’s a problem with Unity.
Here’s a rundown of the things you need to understand:
You have the Animator component which allows for an object to be animated.
You have Animation Clips, which is an asset that contains the animation curves and data. These are created in your project files using the Create menu.
You have the Animator Controller (created using the Create menu, assigned to the Animator component) which defines the flow and logic, and chooses which animation state should play and when. Animation Clips are added as State nodes in the graph.
Lastly you have the Animation Window, where (with an object selected) you can see the timeline and edit your Animation Clips. Only clips that have been added to the selected object’s assigned Animation Controller as a state node can be seen here.
Hope that helps.