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
Our educational partners
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
I need Construct 2 to detect the collisions on a transparent png image. How can I do that?
Sample: A maze image in black and white
I want only the black part to have solid behaviour. <img src="smileys/smiley5.gif" border="0" align="middle" />
white is transparent...
Can you post the capx? You can change the collide area in Sprite Editor, the last icon on left. "Set collide polygon".
Develop games in your browser. Powerful, performant & highly capable.
You can't do that in "normal way". C2 don't have per pixel collisions. What you can do is to recreate your black and white maze image in layout editor using sprites, tilebg, or even tilemap.
Are you asking about one image/ multiple collision boxes ?
have a look here
Yes, it's only one png image. It's very difficult to recreate one maze in the layout editor. Example: w w w . j o k e l i b r a r y . n e t / yyDrawings/math/maze2a.gif