action triggered even on blank png pixels

For questions about using Classic.

Post » Sat Aug 06, 2011 12:32 pm

i have a sprite 50x50 pixels it means 2500 pixels. but it is png file and when i click on places where are alpha channels nothing happens. is it possible to make functional whole area of sprite, even if there are alpha areas?
B
4
S
2
G
1
Posts: 143
Reputation: 1,211

Post » Sat Aug 06, 2011 12:57 pm

Under properties you can set 'Collisions' to 'Bounding box'.
B
21
S
6
G
10
Posts: 1,024
Reputation: 7,445

Post » Sat Aug 06, 2011 1:08 pm

it works. but i want it to be as a "tunnel" where another object can moving through it. but still it can work when i click on any part of "box"
B
4
S
2
G
1
Posts: 143
Reputation: 1,211

Post » Sat Aug 06, 2011 1:17 pm

Do you mean other objects should only collide with the actual pixels of your sprite, but you want the complete bounding box area to be clickable still?

It would probably be the easiest way to just use another invisible sprite/box object for the bounding box area.

If you meant something else please do clarify.PixelRebirth2011-08-06 13:17:58
B
21
S
6
G
10
Posts: 1,024
Reputation: 7,445

Post » Sat Aug 06, 2011 3:27 pm

You can set a custom collision mask in the picture editor by clicking on the weird icon
Spriter Dev
B
88
S
21
G
12
Posts: 3,240
Reputation: 16,486

Post » Sat Aug 06, 2011 3:42 pm

PixelRebirth: thanks, this is what i ment
B
4
S
2
G
1
Posts: 143
Reputation: 1,211

Post » Sat Aug 06, 2011 4:05 pm

Hm, I can't do that?
B
18
S
4
G
1
Posts: 413
Reputation: 2,512


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 5 guests