buttons executing in order bug

jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
edited November -1 in Working with GS (Mac)
I've got a strange bug, I've got 4 buttons on a screen, each one changes a few values:

button1 = change attribute 'pressed' to 1
button2 = change attribute 'pressed' to 2
button3 = change attribute 'pressed' to 3
button4 = change attribute 'pressed' to 4

For some reason, whenever I hit any button, they all fire at once, changing the value to 4. If I hit any other button, it just sticks at 4.

They all use the "on mouse down" rule

any idea's on what could be causing it? I've been looking at this for over an hour and my mind is now mush :)

Comments

  • JGary321JGary321 Member Posts: 1,246
    you also need to put in the mouse is over actor rule =)

    If you don't they all fire, since it is currently only looking for the mouse being down.
  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    thank you so much, I don't know how long it would have taken me to figure that out
  • CodeMonkeyCodeMonkey Head Chef, Member, PRO Posts: 1,803
    or just replace it with touch(pressed)

    a mouse down + mouse position over is the same as touch(pressed)

    Since you can not have more than one mouse down event it is easily mapped to the touch(pressed) event.
Sign In or Register to comment.