hi i have like two sprite one a big box and the other a smaller box. i want to have touch events on both the boxes,but when i add touch end it says that it touched both the boxes. I don't want this to happen please help. can i place a blocker\layer below the small box that would not pass the touch event to the box below in that area. Is it possible to do this in construct2. or how do i give priority to small box which is overlapping the big box.
Develop games in your browser. Powerful, performant & highly capable.
can i set a priority so that when it hits the small box it does not hit the big box. Else ill have to scrap construct 2 work and do it in createjs.
You can't block touch events, but you can ignore / filter them out.
Just add another condition "Is touching BigBox" and invert it:
On touched SmallBox
NOT Is touching BigBox
This event will not be triggered when you touch both sprites.
Hi this does not work because then the small box event does not get trigger now only the big box event gets triggered. cant find on touched its only is touching.
Probably easier for us to help if you post your .capx.
Moddifing the hitbox?
In colision poligon