How do I remove the collision polygon from specific frames?

Get help using Construct 2

Post » Mon Apr 11, 2016 10:14 pm

Hi, is it possible to remove the collision polygon completely from specific frames of an animation. For example, my player is performing a kick animation and I only want the collision polygon on the frames where he has his leg extended. When he is starting and ending the animation I don't want any collision polygon, so that even if an enemy is overlapping the player the collision is not registered until the "hit" frames.

I've tried some workarounds using pinned collision boxes that appear/disappear at specific frames but this is too painful to implement given the number of moves and frames per move in my street fighter style game.

Any suggestions appreciated assuming this is not supported by default in the image editor.
B
4
S
1
Posts: 7
Reputation: 314

Post » Tue Apr 12, 2016 4:56 am

I'm still work hour but basicly Just add a condition on specific frames that you want to disable collision. In event editor:
- Is "youranimation" playing.
- (Add a condition) "Compare frame" (choose which is your frame to disable)
- ACTION: disable collision
B
36
S
13
G
1
Posts: 88
Reputation: 3,101

Post » Tue Apr 12, 2016 11:22 am

Would have preferred to remove the collision polygon directly in the image editor for specific frames but I think your suggestion is the only other option, and better than using separate collision boxes pinned to the sprite.
Thanks
B
4
S
1
Posts: 7
Reputation: 314


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 38 guests