0 Favourites

How do I remove the collision polygon from specific frames?

  • 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.

  • 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
  • Construct 3

    Buy Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Buy Now Construct 3 users don't see these ads
  • 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

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic
106 35,970
Syazanie Amirin's avatar
Syazanie Amirin
Unread hot topic
99 10,155
karshinkoff's avatar
karshinkoff
Unread hot topic
77 6,467
Kyatric's avatar
Kyatric Construct Team Support