[solved] How do I establish a limit of points and show the score?
Posted: Thu Sep 06, 2018 10:42 am
There's a part of my game where you have to compete with another character. And depending on your answers, you'll go to a different scene.
If you choose the correct answer 10 points will go to you. Otherwise it will go to Jhon.
Something like that:
There will be many questions. Whoever makes 100 points first will win. Before jumping to the next scene, I'd like a text to show up saying "You won" or "Jhon won".
And I wanted the points to be shown like that:
Does anyone know how I can display the points like that and establish a point limit?
I kind of got close to it at first, but I ended up mixing different codes and made a mess hah
What code system do you recommend me to use?
Thanks xx
If you choose the correct answer 10 points will go to you. Otherwise it will go to Jhon.
Something like that:
Code: Select all
init:
$ Jhon = 0
$ You = 0
label start:
scene window2
with fade
"What's the capital of US?"
menu:
"New York":
$ Jhon += 10
"Washignton":
$ You += 10
"Dolphins are"
menu:
"Mammals":
$ You += 10
"Fish":
$ Jhon += 10
And I wanted the points to be shown like that:
Does anyone know how I can display the points like that and establish a point limit?
I kind of got close to it at first, but I ended up mixing different codes and made a mess hah
What code system do you recommend me to use?
Thanks xx