Physics and velocity

This forum is currently in read-only mode.
From the Asset Store
Everything is made via physics, Very simple code: 6 events only (3 for tank creation, 2 for controls and 1 for camera)
  • I have a physical sprite with Gravity and Don't Rotate that I move using arrow keys and velocity commands.

    If I jump, and start moving toward the wall, the player keeps getting stuck in there. It's annoying.

    Is there any minimalistic way to fix this?

  • Physical sprite, and platform movement?

  • Physical sprite, and platform movement?

    Nope, I want to keep all the physical properties of the object.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • In all of my experiments with trying to make a good custom physics platform engine, I've encountered nothing but trouble. No matter what I tried, it always ended up behaving buggy. Often times fixing one problem would result in causing another.

    That said, to fix the wall sticking, you could try raising the gravity, setting linear dampening to 0, and using Exact for friction and solver. You can overcome the speediness of the newly changed gravity by messing with the world scale.

    Alternately, you could create side detectors for your player box, and don't add force in a certain direction when that detector is in contact with a wall.

    Good luck with it. I know electrii is working with a physics platform movement, you might as him for some tips.

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