Single sprite with multiple collision zones

Get help using Construct 2

Post » Mon Oct 17, 2011 8:27 pm

Just curious, is it possible to have a single sprite with multiple collision zones?
B
16
S
2
G
1
Posts: 43
Reputation: 1,473

Post » Mon Oct 17, 2011 8:33 pm

You can use dummy sprites set to select image points on the main image.
Image Image
B
161
S
48
G
90
Posts: 7,356
Reputation: 66,767

Post » Mon Oct 17, 2011 8:38 pm

So..."stack" sprites, but where does the sprite stacking occur? In the animation editor or on the game layout?
B
16
S
2
G
1
Posts: 43
Reputation: 1,473

Post » Mon Oct 17, 2011 8:44 pm

You would do it via events. Like if dummy variable =1 set position to mainsprite image point("1")
Image Image
B
161
S
48
G
90
Posts: 7,356
Reputation: 66,767

Post » Mon Oct 17, 2011 8:58 pm

As newt says, just use other invisible sprites and position them by the visible sprite. Then you can test for collisions with the invisible sprites.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,580


Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go, abdalghani, Ethan, Marxally, Naightwolf and 20 guests