Project Update: Lives and Respawn

In platform games lose lives and restart from a checkpoint is very common, even knowing very well the characteristics of the protagonist just a mistake to have to start from scratch.

Implementing this feature seemed very simple but when you work using physics something always happens and in fact, it did.

To implement the lives and UI as I did with the coins I used my UI Manager and the Singleton pattern to call it directly and update the UI.

Dead Zone

Now I had to manage the death by fall and they respawn. The idea is to create a collider and when the player crosses it he is repositioned at the starting point and one life is subtracted.
The idea is right but to finalize it we have to fix a couple of things, otherwise, the player will fall too fast.

The moment the player crosses our DeadZone we will deactivate his physical component and launch a coroutine to reactivate it shortly after when he has already been put back in his place and his life has been taken.

project manager by day, unity developer by night

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

Recommended from Medium

Salesforce Clouds -Seamless interconnectivity

[Leet Code] Binary Tree Postorder Traversal

FINE… I’ll do a blog on CSS

▷ App Development in Jamaica | Top App Developer in Jamaica — MDX

▷ App Development in Jamaica | Top App Developer in Jamaica - MDX

“Common Project Risks and Agile Mitigations, Part 2, Requirements” from an Old Blog

Top 10 Reasons You Need To Start Using Linux Today Part 2

OpenVPN Server with IPv6 on Ubunutu 17.04

Git commands for Beginners

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
Andrea Alicino

Andrea Alicino

project manager by day, unity developer by night

More from Medium

IKEA-CLONE

Tipit Newsletter pt3

XOiD Fleet 001 Has Landed // The Reveal