Create Entrance Animation in Unity

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.

--

--

--

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

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

How to print 😁😛😋🤣emojis using python🐍

Enabling ODP.NET Perfmon counters for Managed Provider

Understanding the Roles in Cloud Computing

VOTING MANAGEMENT SYSTEM IN C++

8 Ways AssetSonar Can Help Manage Your ITAM Inventory

8 Ways AssetSonar Can Help Manage Your ITAM Inventory

Getting Started with Python Language — 2

Interpreting Exit Codes in Shell Scripts

A car dashboard speedometer showing the check engine warning light

Crunch Pokemon Data with Python and Deta Base

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Rusben Guzman

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.

More from Medium

Tap & Hold & Rapid Prototyping w/ New Unity Input System

Creating the Main Menu

High Definition Rendering Pipeline in Unity

How to Create A Loading Scene in Unity