Adding New Enemy Art

Adding New Enemy Art

Justin Horner's photo
Justin Horner
·Apr 7, 2022·

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.

enemy inspector window

I'll also update the enemy script to use OnTriggerEnter2D.

Here's the result. enemy art demo

Summary

That's all we need to switch out for our enemy. Stay tuned.

Take care.
Stay awesome.

 
Share this