Drawing multiple collision polygons for a single object

Get help using Construct 2

Post » Wed Jan 11, 2017 9:11 am

Hi everyone,

I would like to know if it is possible to have multiple collision polygons for a single object. I would like to avoid this :

Image

As you can see, I started drawing thin lines between elements to separate the different polygons. But it is obviously not very precise as the thin line are still part of one big polygon.

Another solution would be to have a "perfect" collision polygon, where every pixel is taken into account, and transparent pixels are ignored. But I don't know if this is possible with Construct 2.

Thanks in advance for any help! :)
B
39
S
10
G
1
Posts: 369
Reputation: 3,448

Post » Wed Jan 11, 2017 5:21 pm

Unfortunately not. You'll have to have multiple objects. If you want to make them all move as one, you can give them all the 'Pin' behaviour, and pin them to another object which will control their movement.
<iframe frameborder="0" src="https://itch.io/embed/146124?linkback=true&dark=true" width="552" height="167"></iframe>
B
26
S
7
Posts: 254
Reputation: 2,389

Post » Thu Jan 12, 2017 9:41 am

Ok, thanks for the info and suggestion.
B
39
S
10
G
1
Posts: 369
Reputation: 3,448


Return to How do I....?

Who is online

Users browsing this forum: Ofris, socialpilgrim and 4 guests