My journey becoming a Unity game developer: 2.5D Infinite Runner-Player loses lives and Respawns at a particular location

Player loses lives when they collide into the Dead Zone, lives lost is displayed onscreen, and level restarts when the Player loses all 3 lives.
Lives text object created to show the player’s lives onscreen.
Text field’s height changed.
Lives text and Coins text fields moved to the top of the screen.
Positioned the Lives text and Coins text to the upper-left corner of the screen.
Damage method for player to lose lives, and update onscreen.
Dead Zone created for the player to lose their life when they fall into it.
Player receives damage when they enter the Dead Zone object.
Respawn Location object created in the position of the Player when the game starts.
Respawn Location added to Dead Zone script, and Lives text added to UI Manager script.
Player loses lives and the amount of lives is updated onscreen.
Character Controller is disabled when the player dies, then respawns.
Coroutine to wait half-second before enabling the Character Controller again.
Player pauses half-second, then is able to play again.
Restart the game if the Player ends up with zero lives.
Display the starting values of lives and coins for the player.
Lives and Coins displays the starting amount for the Player to begin with.




Learning to become a Unity game developer.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Introduction to Open Source

Het #Office365 #nieuws van 24 september–7 oktober

Creating a Type-Safe React Application with TypeScript using the Saleor GraphQL API

Mailinator as bunch of email testing

iOS Swift -Passing data One ViewController to Another using Different Ways

Are you writing a Business Requirement Document? Here are seven tips to help you.

Understanding Migrations in Django

Django Data Migrations

🔰 Create High Availability Architecture with AWS CLI 🔰

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Rhett Haynes

Rhett Haynes

Learning to become a Unity game developer.

More from Medium

My journey becoming a Unity game developer: Make a game look beautiful-Door, Frame, and Wall…

Building and Testing your Unity game

Moving Platform and Lives

Platformer: Elevator