Help with moving and jumping
Akonron
Member Posts: 11
Hello everyone
I am currently creating a game, but I need one of the actors to be able to jump.
I have managed to find out how to make the actor preform the jump, but if i want it to move left or right at the same time,
the actor stops in the middle of the air and starts moving to either side. as soon as i let go of the move-button,
it starts to fall again.
Does anyone know how to fix this problem?
I am currently creating a game, but I need one of the actors to be able to jump.
I have managed to find out how to make the actor preform the jump, but if i want it to move left or right at the same time,
the actor stops in the middle of the air and starts moving to either side. as soon as i let go of the move-button,
it starts to fall again.
Does anyone know how to fix this problem?
Comments
the first is that you need to add gravity to the scene. It is under the Scene Tab where you edit screen size and camera stuff(not sure how else to describe it.)
The other is that you need to add density to the actor. That is under the physics option.
Hope that helps
actor left or right while jumping, the actor will stop falling until i stop moving left or right.
Would be happy if you would tell if you come up with a solution.
But after I completed the jump, i now got a new problem, now the actor will keep on moving
because of the acceleration-command. How can i stop him?
If spacebar key is down
Accelerate at 600 in direction 90 (move upwards)
After 5 seconds
Change velocity to 0 (keeps you from moving upwards. gravity will then take over)
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io