[Solved] Lives variable not working

Hello, im trying to make a fruit falling game where you have to collect the cherries and once you get to a certain score you complete the level. However, if you fail to collect the cherry before it touches the ground, you are meant to lose a heart or like a life. I tried to make the hearts disappear everytime the cherry touches the ground using the lives variable but it doesnt seem to be working. Anyone know how to fix this?

1 Like

Can you provide screen shots of the events that modify LivesVariable?

1 Like

Here you go :slight_smile:

You are setting the lives variable at the start of the scene, but never decreasing it when a cherry lands on the ground.

In the event where the condition checks for Cherry colliding with grassy, add an action to decrease LivesVariable by 1.

1 Like

It worked!! Thank you!