Physics and velocity

For questions about using Classic.

Post » Thu Mar 13, 2008 7:07 pm

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?
B
2
S
2
G
5
Posts: 512
Reputation: 2,674

Post » Thu Mar 13, 2008 7:10 pm

Physical sprite, and platform movement?
B
4
S
2
G
4
Posts: 719
Reputation: 2,938

Post » Thu Mar 13, 2008 7:34 pm

[quote="Doppel":2s012vyh]Physical sprite, and platform movement?[/quote:2s012vyh]

Nope, I want to keep all the physical properties of the object.
B
2
S
2
G
5
Posts: 512
Reputation: 2,674

Post » Thu Mar 13, 2008 9:06 pm

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.
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 1 guest