[SOLVED] Clicking on transparent objects

For questions about using Classic.

Post » Wed Oct 27, 2010 8:54 pm

Okay guys, I need some help. Fast.

I'm building a tilemap editor and everything has been gravy so far.

But randomly I noticed that I couldn't (in my half-finished editor) click on tiles that were already blank, despite the Sprite that I wanted to interact with still being there.

Turns out from some spading with partially and totally transparent objects, I learned that (using the MouseKeyboard plugin) you can't click on a totally transparent object (or even an object with a current animation frame that is transparent, or even a small transparent corner of a sprite).

This is extremely troubling, as it basically grinds everything to a halt.
I could redraw the tile maps to have a mildly transparent rear layer that would allow clicking but that would screw up my plan of having multiple overlaid layers that can all be viewed at once, as the rear layers would get progressively harder to see behind layers of partial transparency.

Any ideas?
B
2
S
1
G
3
Posts: 43
Reputation: 1,086

Post » Wed Oct 27, 2010 9:16 pm

Use bounding box collisions instead.
Moderator
B
87
S
32
G
33
Posts: 3,005
Reputation: 27,397

Post » Wed Oct 27, 2010 11:09 pm

Magnifique.

Thank you.
B
2
S
1
G
3
Posts: 43
Reputation: 1,086


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 4 guests