Hi,
I've done a puzzle game and there is a behaviour that I hope I could correct. The puzzles pieces are displayed randomely on the screen and the user can select one and change its place. The problem is that if several pieces are overlaped if the user click on one of it, it´s not always the front piece that is taken... Does it exist a way to check if the piece clicked is in front ? And another question, is it possible to ignore alpha part?
Sorry for my english, I'm not sure I explained correctly what I want..
Thanks for your help.
Comments
You just need to put event:stopPropagation inside event listener so it would not move to the next one.
About alpha well it is possible, but it may be costly depending on how often touch events are executed.
If you have some predefined shape, better test for shape collision
http://giderosmobile.com/forum/discussion/749/gideros-getpixel/p1
Likes: hgvyas123
https://www.facebook.com/lesptitboutchoux