Create Entrance Animation in Unity

Make boss entrance cleaner

Rusben Guzman
Sep 6, 2021

Objective: write a code to make an enemy entrance animation when it is instantiated.

The first step is to make sure the enemy is out of the camera when we instantiate it. In this case a good position is 12 in the Y axis.

In the boss script in the method update I check if the position of the boss is higher than 3.5f (the position to start the fight) then I use the translate function to move the enemy down until he gets the 3.5f in the Y axis.

And that’s it!!! Enemy entrance animation ready.

--

--

Rusben Guzman
Rusben Guzman

Written by Rusben Guzman

A Software Engineer passionate about game dev and interactive products with Unity. I consider video games to be the artistic expression of programming.

No responses yet