Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
Free education resources to use in the classroom
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
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.
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.
Develop games in your browser. Powerful, performant & highly capable.
Probably easier for us to help if you post your .capx.
Moddifing the hitbox?
In colision poligon