GML Jumping and Falling (Gravity)

S

Shawnowstin

Guest
So im fairly new to game maker and starting to learn some code. I thought using room gravity would help me but nope, and i because idk how to use gravity i now need help with jumping too... heres my current code:
upload_2017-7-23_22-54-2.png
 
S

Shawnowstin

Guest
In my room the ground is tile sets and the yellowish sprite is going to be an invisible wall.
 
When moving physics objects it is best to use the " physics_apply_force(xpos, ypos, xforce, yforce) or physics_apply_impulse(xpos, ypos, ximpulse, yimpulse) ".
You can move left and right and jump with these.
If you use phy_position_x to move your object the physics wont work properly.
 
Top