Phase 2 — Rammer Enemy

Nicholas Lim
Jun 17, 2021

There are some new enemy types to introduce, and one of them is a more aggressive enemy that rams the player when they’re in range.

After some edits to the Enemy script to organize the new enemies with a switch instead, I add the following code for this particular enemy.

If the distance between the enemy and player is less than 3f units, then this enemy will move towards the player’s position.

--

--