Combo System for puzzle game

Hi all! i created a combo system for my puzzle game, okay there is no problem with that. but before publishing the update i want your ideas so i can improve this system
this is my code:

this will make sure the user scored 3 points in a row and shows the text.

When will Visible turn back false?

How do you test three in a row without acknowledging a loss?

Thanks for your answer.
1- I forgot about that, thanks for telling :sweat_smile:
2-if the life in the game is full and the user scored 3 in a row it will show the text.

You need an extra global variable for this, counting how long the current winning streak is.
Each loss, you would have to reset that counter to 0.

1 Like

Ok, that's a good idea! definitely going to try that.
edit: it's working, thanks for your idea!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.