Gravity gets reset when I move in midair
simy62482
Member, PRO Posts: 5
During the making of a 2D game where you move, dodge spikes, and try to reach the finish, I found a problem where gravity does not effect the actor when it is moving in midair. When I tested the game, the actor was flying when I it was moved in midair. I tried changing self.position.x to self.position.x + 10 every 0.01 seconds, but then the actor started to do all kinds of weird moves. Is there a way to have gravity effect an actor while it is moving?
Comments
Gravity does effect and actor when it is moving but remember it is true physics so if the force in one direction is greater than the gravity it has no effect until that velocity is lower. Try increasing the gravity or add a max speed to your actor. Under the motion tab in the self attributed there is a max velocity. Check it and add a max speed value.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
Thanks!
And how do you close this discussion?
We don't close threads in general the fact you posted thanks indicates to people you are all set
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS