What's wrong with this game

The problem with this is that after the event “victory” is executed, the events “check” and “timer” are executed again. This causes the values of the variables “total” and “timer” to be set to 1 again, which in turn causes the event “victory” to be executed in a loop.

What you need to do is create another variable(I usually call it “Game Over”) and set it to 1 in the victory event. This way you don’t need to set “total” and “timer” to be equal 2, so you can remove those steps.

Then, you need to check in the “check” and “timer” events if this variable is equal to 0.

Doing this fixes the problem! :grin:
PS: I changed the values in both events(“check” and “timer”) to -1 and 1 just so I could test it faster. You can leave their values intact(15 and 60).

4 Likes

thanks all and here’s the last version :smile:

https://ready.app.link/n6CHO9DAoM

3 Likes

for me this plays really well on my mac. awesome!

one small suggestion- I’d make the “Start” button appear right away. After playing the game 1 time, you don’t need to read the instructions to play again, so the “wait” for the start button to appear is a bit annoying. I’d just have it appear when the instructions appear.

Have you considered exporting your game as a stand-alone app? Do you know how to do this? You could submit it to the Android or Apple Stores as an education game.

1 Like

thanks a lot for making this awesome application

and here’s last update making “Start” button appear right away. After playing the game 1 time

https://ready.app.link/GgPmUaGkpM

2 Likes

yes i know actually it’s not my first android app i made an augmented reality educational app before

2 Likes

Absolutely awesome graphics and game concept.

How many graphic objects did you design?

Best wishes to you in your programming and seeya.

Paul.

3 Likes