Description

This project focuses on basic animations in Unity. There are 3 prefabs in this project with 3 simple animations. The first prefab is a sun, with a “shining” animation. This shining animation is activated by clicking anywhere on the screen and it just scales the prefab up and down so that it gives the illusion that it is shining. The second prefab is a rocket with an animation that makes it fly to the sun. The animation is activated by pressing the space button and works by changing the x and y position of the rocket. While that’s happening, the animation also rotates the rocket to point toward the sun so it looks more like a real rocket. The third and last prefab is a robot with a simple walking animation. The animation is activated by pressing the W key. This animation is actually multiple animations combined, with the main animation being: moving the prefab across the screen using its x position along with rotating it 180 degrees mid animation. The secondary animation moves the robot’s legs and arms up and down to simulate a more realistic walking animation. 


Feature 1: Sun

  • Sun prefab on the top left of the screen. It “shines” on mouse click anywhere on the screen. To elaborate, an animation occurs that scales the prefab up and down giving the illusion that it is shinning.

Feature 2: Rocket

  • When the space button is pressed, the rocket will fly to the sun. Behind the scenes of this is an animation that not only changes the position of the prefab, but also rotates it and scales it down. This gives the illusion of the rocket flying and getting closer to the sun.

Feature 3: Robot

  • Once the W key is pressed, the robot walks forward and back across the screen. This is the most complex out of the three animations because it has sub-animations. In other words, there is a main animation that moves and rotates the robot prefab. Then, there is one animation for the right side of the robot and one animation for the left side – side meaning arm and leg. I put a delay on the animation for the left side so that it gives the illusion that the robot is walking.
StatusReleased
CategoryOther
PlatformsHTML5
AuthorTTGLKami
Made withUnity

Leave a comment

Log in with itch.io to leave a comment.