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...
Develop games in your browser. Powerful, performant & highly capable.
Can you post the capx? You can change the collide area in Sprite Editor, the last icon on left. "Set collide polygon".
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