I'm not sure about something

I’m trying to make a lives system and I’m sure I’ve done it correctly, but somehow it isn’t working. I’ve tested it on my main account and another account on another device, but it is still not working. If anyone knows what my error is or can help, thank you.
It’s just that the text that shows how many lives you have isn’t working(it stays the same no matter how many times you get knocked out), not the lives system.
Screenshot 2024-12-03 4.24.52 PM



2 Likes

Why do you have the +6 in the create text with block?

Also, the Live variable is undefined from the start. You need to set it to a property.

1 Like

fullyKnockedOut is the variable that makes you respawn to the starting point (aka you have no more lives left)
so yes, the lives thingy also doesn’t work either lol

1 Like

Variables always start with 0, with other variables I’ve used it always starts with 0
I don’t know how to make it start at 6 so I just make it +6 for the text

1 Like

Just use aproptery with a starting value of 6

1 Like

ok ill try to do it :slight_smile:

1 Like

Screenshot 2024-12-03 4.30.19 PM
ok I’m done, is this ok?

1 Like

Variables don’t save from time-to-time. You would have to save the number of lives with a property. :face_with_diagonal_mouth:

1 Like

I’ve updated the code, is this correct?
Screenshot 2024-12-03 4.32.51 PM

1 Like

Almost! You forgot to set the Live property -1. Do that real quick and I think that’s good! :slight_smile:

Wdym live property -1?

image

If you put these blocks before the text, you can remove the -1 in the create text with.

I meant to set the property value, sorry!

Thank you so much :slight_smile:

1 Like

It’s not working though
is this code correct?
nvm I fixed it

Oop, get rid of the second part of create text with, and replace it with the simple: Get Property: Live

Also, change the 0 to a 1.

image

I fixed the 0 to 1 and it still isn’t working…

1 Like

I fixed it and it still isn’t working

Does the overlay even show? What transmits on HI?

1 Like

yes, the overlay shows, and HI makes the overlay show and it teleports you to the Map where you can get knocked out

Is the channel name that the block code receives correct?

Did you forget to create the property for Live?