In this article, we're going to change the enemy from a cube to a sprite! We've done this several times already, so this will be another short post to show the progress of our game transitioning from 3D to 2D.
Let's get started.
New Enemy Art
We're going to follow the same steps as before to switch to 2D. I'll replace the 3D components with a trigger
CapsuleCollider2D, and a
Rigidbody2D. Here are the components we have for the enemy prefab after making these changes.
I'll also update the enemy script to use
Here's the result.
That's all we need to switch out for our enemy. Stay tuned.