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
32
S
6
G
1
Posts: 353
Reputation: 2,821

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.
The LEVEL GENERATOR TOOLKIT



24 functions dedicated to producing randomly generated terrain for all kinds of games.
B
25
S
7
Posts: 242
Reputation: 2,308

Post » Thu Jan 12, 2017 9:41 am

Ok, thanks for the info and suggestion.
B
32
S
6
G
1
Posts: 353
Reputation: 2,821


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 6 guests