Production: Enemy Art


In the last post, we updated the player’s attack projectile from a capsule to a sprite. Today we’re going to change the enemy from a cube to a sprite!

The Challenge

The challenge is to update the enemy from a 3D cube to a 2D sprite in the Enemy prefab.

Let’s get started.

Switch to 2D

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


Short and simple, we’re done for now.

Stay tuned for the next post. Take care.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s