buttons executing in order bug
jonmulcahy
Member, Sous Chef Posts: 10,408
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
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
If you don't they all fire, since it is currently only looking for the mouse being down.
Send and Receive Data using your own Server Tutorial! | Vote for A Long Way Home on Steam Greenlight! | Ten Years Left
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.