Create a game

Hello,

I am working a quiz game app.
Is it possible that the user starts the game with a default number of life (like 3-5) and every time he/she insert a wrong answer the number of life decrease by 1.
When the number of life is equal to 0, the game is over.
Thanks

Gio

1 Like

Certainly possible!

2 Likes

Good, do you have a tutorial On that?
Thanks

Gio

It’s probably gonna be easier to let it start with zero as the default, but for display purposes, always add 3 to that number. Set the game over when the value is -3 (displayed as 0).

Otherwise, if you are submitting a form to start a quiz, you could pass in a column value defaulted to 3 as your initial value.

1 Like

Thanks

1 Like

Bonus! This might make it easier.