Hi guys, I am having some trouble with clicking stuff. In my game, you have an option of clicking two different buttons. I clicked one and then they both hid, and then I waited like .1 second and clicked the x position and y position of the other button that was hidden, and it still did the corresponding script! Will this glitch occur online too? If so, please tell me a way to get rid of this bug.
Offline
If you have the script "When [Sprite] Clicked>Hide" Then it will not respond, what you could do is set the ghost effect to 100% then it will respond when clicked even though the user can't see it. You could also detect if the user clicks inside an area an area you define:
<if mouse down> and <mouse x > 0> and <mouse x < 50> and <mouse y > 0> and <mouse y < 50>
If you do something like that, it will check if the mouse is down and in the area "0 by 50 by 0 by 50".
Last edited by Magnie (2011-09-12 15:43:48)
Offline
Magnie wrote:
If you have the script "When [Sprite] Clicked>Hide" Then it will not respond, what you could do is set the ghost effect to 100% then it will respond when clicked even though the user can't see it. You could also detect if the user clicks inside an area an area you define:
Code:
<if mouse down> and <mouse x > 0> and <mouse x < 50> and <mouse y > 0> and <mouse y < 50>If you do something like that, it will check if the mouse is down and in the area "0 by 50 by 0 by 50".
I am using when I receive some thing wait 1 second show wait until touching mouse pointer and mouse down for both buttons.
Last edited by Thescratch3 (2011-09-12 17:51:20)
Offline
Magnie wrote:
If you have the script "When [Sprite] Clicked>Hide" Then it will not respond, what you could do is set the ghost effect to 100% then it will respond when clicked even though the user can't see it. You could also detect if the user clicks inside an area an area you define:
Code:
<if mouse down> and <mouse x > 0> and <mouse x < 50> and <mouse y > 0> and <mouse y < 50>If you do something like that, it will check if the mouse is down and in the area "0 by 50 by 0 by 50".
And I think I will just use a variable. Thanks for replying though.
Last edited by Thescratch3 (2011-09-12 17:57:24)
Offline
Mods please close this topic.
Last edited by Thescratch3 (2011-09-12 21:49:49)
Offline