Export your .aia file and upload it here.
Looking at your blocks, I suspect the Clock Timer is firing
at a time when the two global variables firstFlip and secondFlip still hold a value of -1 instead of a flipped Button component.
Either double check the Enabled status of Clock1 to prevent it from firing prematurely (disable Clock1 in the reset procedure and in the Designer?), or add extra if/then tests around any Button operations against those two variables, to make sure they don't hold -1.
Okay okay thx I'll try
I asked for the .aia before giving your code a good read.
Try my suggestion about the two global variables first.
1 Like