Select by visible pixels

Get help using Construct 2

Post » Tue Mar 05, 2013 1:15 pm

Hi guys
My question is simple
Is there a way to select sprites not by collision polygons but by visible pixels or something like that? In my case i use On mouse clicked on object.
Thanks
B
12
S
3
G
1
Posts: 120
Reputation: 1,829

Post » Tue Mar 05, 2013 3:59 pm

Not as far as I know - any reason why collision polygons are insufficient?
Moderator
B
72
S
13
G
11
Posts: 900
Reputation: 11,783

Post » Tue Mar 05, 2013 4:22 pm

How about incorporating z-index? The top z on the top layer that you're interested in would be the visible pixels.
B
6
S
1
G
1
Posts: 70
Reputation: 702

Post » Tue Mar 05, 2013 6:37 pm

I can be done with the canvas plugin. For example look at the capx here:
http://www.scirra.com/forum/cut-or-slice-an-Object_topic56228_post351923.html#351923
Event 2 under the "dragdrop" group checks if a visible pixel is clicked.
B
79
S
24
G
54
Posts: 4,746
Reputation: 40,755

Post » Wed Mar 06, 2013 4:52 pm

Thanks for help guys.
Im kinda blocked with work at work atm, but once i have some time i'll test those options.
Cheers
B
12
S
3
G
1
Posts: 120
Reputation: 1,829


Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go, BipolarMike, R0J0hound, totoe and 19 guests