EECS 494 Metroid Tutorials

Player Setup

Now that we have our level (mostly) setup, we can add start working on the Player Game Object: Samus. Create a new Game Object and give it the name Player.

Player Root Object

Set this object’s position to (39.5, 18.5, 0).

Also get rid of the Fun Ball if you haven’t already.

PlayerObject

Player Standing Object

Next we’re going to create another Game Object named Standing and set it as a child of Player. Set the local position of this object to (0, 0, 0).

Now add a Sprite Renderer component to the Standing object. Set the Sprite of this component to metroid_samusaran_sheet_0 under the Assets/metroid_samusaran_sheet Sprite Sheet

AddedSprite

Next let’s add a Capsule Collider to Standing.

Set the Center to (0, -0.1, 0)

Set the Radius to 0.4

Set the Height to 1.8

AddedCapsuleCollider

While a Collider was all that was needed for the Tiles, the Player also needs to move. For that we’ll need a Rigidbody.

Add a RigidBody to the Player Game Object.

AddedCapsuleCollider

Finally, drag-and-drop the root Player Game Object from the Hierarchy into your Assets to make it a Prefab. Move it into the Prefabs folder for organization.

Conclusion

That’s it for this tutorial. Once you’re ready commit your changes and move on to 06-Player Movement.