Expand collision polygon beyond sprite size

Get help using Construct 2

Post » Thu Apr 11, 2013 10:18 am

Is it possible to do what the topic says?
Would be handy on small drag and drop object..

I know I could just do an invis object around the sprite, or expand the empty area around my graphics... but the polygon thing would probably be smarter!
B
9
S
4
G
1
Posts: 102
Reputation: 2,274

Post » Thu Apr 11, 2013 11:20 am

As sound as you scale yur image also the collisions polygon get scaled. Why should you need something else ?

But for sure an invis object arround the sprite would be a good idea. You could also make a Plugin for that.Darklinki2013-04-11 11:20:20
B
15
S
6
G
6
Posts: 512
Reputation: 5,550

Post » Thu Apr 11, 2013 2:09 pm

The only way I can imagine doing it would be to see to it that the sprite does not fill the bounding box. The imported imaged would need to be small enough in relation to the bounding box. A lot of graphics programs auto crop on export. Sometimes I cheat by placing four small marks or dots in the corners of the image to set a crop size. I think it would be awesome if the image editor allowed you to scale the image and not the bounding box. It would also be really bitchen if the image editor could do onion skinning.
B
20
S
2
Posts: 257
Reputation: 2,431

Post » Thu Apr 11, 2013 5:47 pm

Make the sprite size bigger and do what you need, or simple make an invisible sprite with the size matching the polygon mask you needed and spawn and pin it on the object you want.
ImageImageImageImageImageImage
B
93
S
20
G
14
Posts: 1,218
Reputation: 19,500

Post » Thu Apr 11, 2013 8:59 pm

Ty for your replies.

Darklinki - If you dont't want to scale the graphics, but still want to be able to select it easily.
B
9
S
4
G
1
Posts: 102
Reputation: 2,274


Return to How do I....?

Who is online

Users browsing this forum: getplay and 24 guests