Random Number Generator based game breaks every now and then randomly without reason

Hello people, I made a simple random generator game with a RNG system but it keeps breaking randomly after a few presses. I am using http://code.appinventor.mit.edu (China) and here are some screenshots of my code:

bootlet_whack_a_mole.aia (10.2 KB)

Whenever I start the game and press the buttons a few times, it just stops working and none of the buttons turn green. This happens randomly and I have found so far that it isn't a specific RNG number that is breaking the system.


The first look in your project, I realised that these blocks
can be replaced by this
and this can be applied to many of your blocks, such as set Right / Left_Player_Score blocks.

It sets the background color for each button in the list.


Thanks for the suggestion. I just started learning app inventor so I did not know how to use lists effectively :D.

1 Like

I have made this change:
It works
Move "call RNG_SYSTEMx" from "TouchDown" to "TouchUp"


oh okay thanks for the help :smiley:

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