I've been trying to accomplish the following:
I want a player to click blocks: if he clicks a block with a certain colour, he scores, but if he clicks outside the block or on a block with the 'wrong' colour, points should be subtracted...
I've been trying (boolean) instance variables, but can't seem to get the thing working.
Actually I only want to know if a boolean instance variable is the way to go or are there other ways?
Thanks in advance!
Develop games in your browser. Powerful, performant & highly capable.
Hi Rjan - boolean is for true false.
It sounds like you need to do an event on mouse click / tap then nest a condition about whether the correct object was clicked - upscore if it was and downscore if it wasn't.
If you upload a capx of what you're trying to do we could have a look at it.