I am trying to make a game that compares if the player are doing what the player suppose to do, by doing that, when ever the player click or touch or press key, it'll increment a variable to 1, then I compare this variable to another as a correct variable number.
eg.
by click on "something" var player = player + 1.
set "answer" var answer = int(andom(3)) // let say the answer is equal to 1.
for every 1 second check
if player == answer
score = score + 10
else
game over
what happen is if I press the right key, it'll increment 1, but if I click on the button I have made on screen, it will increment by 3, I don't have a touch screen so I cannot test that. ( click on object "img")
How do I stop it doing that, it has been a big bug for me.
the image button I've made has a on state(animation with 1 extra frame). I did try to turn if off, nothing changes
<img src="smileys/smiley11.gif" border="0" align="middle" />