[SOLVED] More colision points

Discussion and feedback on Construct 2

Post » Mon Jan 07, 2013 3:31 pm

How can I have more than one colision point on a same sprite ?Vinians2013-01-09 16:20:32
Be nice with others and with yourself!
My musics: https://soundcloud.com/vinians
My C2 Forum:
http://nmbr.forumeiros.com/
My Site:
http://www.dicasebytes.com.br
B
21
S
5
G
6
Posts: 166
Reputation: 4,885

Post » Mon Jan 07, 2013 4:23 pm

I don't believe you can. You will need to pin small sprites with collision to the primary sprite.
B
87
S
18
G
9
Posts: 2,455
Reputation: 14,834

Post » Mon Jan 07, 2013 5:21 pm

Different animations on a sprite can have their own collision boxes. I have sprites with Click/Drag with an "EditMode" animation that has a big collision box, and a "RunTime" collision box that is smaller.boolean2013-01-07 17:21:51
B
24
S
4
G
1
Posts: 244
Reputation: 3,462

Post » Mon Jan 07, 2013 5:54 pm

I solved the problem creating five animations and set each one with it own bounding box. But now I need to run animation faster to get collision working.... This is not the nice way to do it...
Be nice with others and with yourself!
My musics: https://soundcloud.com/vinians
My C2 Forum:
http://nmbr.forumeiros.com/
My Site:
http://www.dicasebytes.com.br
B
21
S
5
G
6
Posts: 166
Reputation: 4,885

Post » Mon Jan 07, 2013 6:14 pm

Post your capx and explain clearly what is it you're trying to achieve, as usually recommended when asking for help.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 7,000
Reputation: 57,795

Post » Tue Jan 08, 2013 1:25 am

Create invisible boxes and shape them however you want, then use the PIN object to pin them to your main object. Should work, I think..
B
106
S
35
G
37
Posts: 798
Reputation: 25,215

Post » Tue Jan 08, 2013 10:42 pm

[QUOTE=andreyin] Create invisible boxes and shape them however you want, then use the PIN object to pin them to your main object. Should work, I think..[/QUOTE]
Nice idea! I will try it! (however I broke the sprite into small ones and worked too, more work but worked)
Thanks to all!
Be nice with others and with yourself!
My musics: https://soundcloud.com/vinians
My C2 Forum:
http://nmbr.forumeiros.com/
My Site:
http://www.dicasebytes.com.br
B
21
S
5
G
6
Posts: 166
Reputation: 4,885


Return to Construct 2 General

Who is online

Users browsing this forum: shinichild and 15 guests