# Create a game

**URL:** <https://community.glideapps.com/t/create-a-game/13923>\
**Category:** Ask for Help\
**Created:** [August 13, 2020, 5:29am UTC](https://community.glideapps.com/t/create-a-game/13923 "2020-08-13T05:29:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![GioRinaldi](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/giorinaldi/32/11069_2.png) [@GioRinaldi](https://community.glideapps.com/u/GioRinaldi)\
**Post date:** [August 13, 2020, 5:29am UTC](https://community.glideapps.com/t/create-a-game/13923/1 "2020-08-13T05:29:24Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [August 13, 2020, 10:17am UTC](https://community.glideapps.com/t/create-a-game/13923/2 "2020-08-13T10:17:58Z")

</div>

Certainly possible!

---

<div class="post-metadata">

**Author:** ![GioRinaldi](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/giorinaldi/32/11069_2.png) [@GioRinaldi](https://community.glideapps.com/u/GioRinaldi)\
**Post date:** [August 13, 2020, 12:09pm UTC](https://community.glideapps.com/t/create-a-game/13923/3 "2020-08-13T12:09:10Z")

</div>

Good, do you have a tutorial On that?  
Thanks

Gio

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [August 13, 2020, 1:19pm UTC](https://community.glideapps.com/t/create-a-game/13923/4 "2020-08-13T13:19:55Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![GioRinaldi](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/giorinaldi/32/11069_2.png) [@GioRinaldi](https://community.glideapps.com/u/GioRinaldi)\
**Post date:** [August 13, 2020, 1:38pm UTC](https://community.glideapps.com/t/create-a-game/13923/5 "2020-08-13T13:38:36Z")

</div>

Thanks

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [August 13, 2020, 7:57pm UTC](https://community.glideapps.com/t/create-a-game/13923/6 "2020-08-13T19:57:49Z")

</div>

Bonus! This might make it easier.

> [@new Default values in forms and add screens!](https://community.glideapps.com/t/default-values-in-forms-and-add-screens/13954):
>
> I had to take a break from my day to announce that forms and add screen components can now have default values. In this case, I default a choice in a form in my expenses app: The default value is a computed column–it changes based on who owes whom!
