Physics problem when adding animations

0 favourites
  • 3 posts
From the Asset Store
3 pixel charaters with over 8 animations each + animations with a gun
  • Hey ya'll

    I've got some physics objects that float in space and when you grab them, it creates a slingshot that fires them off in the opposite direction using a physics force. So far so good, however when I want each object to have it's own animation, the objects framerate drops immensely when it gets fired off! Everything else on screen that doesn't have the physics behaviour, moves and acts normally, it is only when I have the animated object reacts to physics!

    Does anyone know how I could resolve this? Ideally without just having to have the objects not be animated.

    Thanks folks

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Make the animation sprite separate from the object.

    Create object (box) with physics Behavior

    Create the Animation sprite with pin Behavior.

    On start of layout

    --Set animation sprite position to object position

    --Pin the sprite to object.

    Then the sprite should follow the object and not effect the physics.

  • Ah brilliant! I now realise why they say to do that in the platformer tutorial. Thanks for your suggestion DurandalCorp, I'll give it a shot!

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