Physics Behavior Strange Issue

0 favourites
  • 6 posts
From the Asset Store
Strange factory themed set of tiles for your platformer game
  • Hi guys,

    I've been using the physics behavior to apply forces to objects, but I recently decided to add skins to my game and noticed something quite strange. I have given the actor a different animation frame for each skin, and a specific frame is selected depending on which skin is chosen. However, despite it being the same actor, the physics forces act differently depending on which skin is being used, almost as if each skin has a different mass. This seems quite odd to me because I am actually keeping the actor itself the same throughout and just changing the animation frame. Any help on what causes this and how to fix it would be amazing!

    Thanks!

  • Is the collision polygon the same for each frame?

  • Physics object calculates the mass based on the collision shape size... if you are changing the collision shape between animation frames and the size of the shape is not equal, then the object mass will not be equal either.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Wow, I've never noticed that thanks!

    Is there an easy way to set the collision polygon the same for each frame? For the first one I did "guess polygon shape", and then tried "apply to whole animation" but that just guesses each one individually. Ideally the polygon shave would be identical for all of them.

  • Set the collision polygon manually for one frame and then use the "apply to whole animation". It should keep the shame shape.

  • I realized the png size was different for each skin, so I copied them all into one file and saved them individually with the same size, then did apply to whole animation and it worked. Thanks for the help guys, much appreciated

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)