Physics Jump Start help

0 favourites
  • 6 posts
From the Asset Store
Game with complete Source-Code (Construct 3 / .c3p) + HTML5 Exported.
  • I am playing a bit around with physics and have a problem, that when i turn physics on (with a trigger

    on overlapping) the crate "jumps" on the first collision, after that everything works normal.

    Please somebody look the capx if you can give some advice on how to avoid this behaviour.

    Thanks.

  • Not had a look yet, but remember it has been stated from day one that physics does not work well with the other behaviors for quite obvious reasons, and may cause unusual symptoms like teleporting.

    Is that what you are seeing?

  • Because this the physics of the player is normally disabled, only then, when the player sprite overlaps the crate it turns physics on. The problem is, that on the first contact, the crate makes a jump. After this, everythings works normal.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I do not have C2 right now, but my guess would be that there is a "more than just contact" between the player and the crate (like, since the physic is off, the player can go inside it a little, then physics is on, and the abberation of the player being inside the crate makes the crate react in an unusual way to repulse it).

    my guess would be that you would need to get the player at the border of the crate before enabling physics.

  • I have one other sprite as "detector" a bit in front of my player sprite, that overlaps the crate & triggers to turn the physics for the player on, so the player stays always outside of the crate border...

  • Ok, since nobody came up with a solution, i helped myself with this: i just kicked the physics behaviour out.

    Because i only need the player to push the crates, i don't really need physics at all, i made a solution where

    i just gave the platform behaviour to the crates & it works perfect for my needs now.

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