Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ///Physics
- if !place_meeting(x+movedir,y,solid_parent)
- {hspeed = movespeed}
- if check_collision_dropdown()
- {
- gravity = 0
- vspeed = 0
- move_contact_all(270,8)
- jump_height = 30
- jump = 0
- if wall_cling != 0
- {wall_cling = 0}
- }
- if !check_collision_dropdown()
- {
- if wall_cling = 0
- {gravity = .2}
- if wall_cling != 0
- {gravity = .05}
- }
- if !keyboard_check(key_forward) and endlag = 0
- {
- if movespeed != 0 and gravity = 0
- {movespeed /= 1.75}
- if movespeed != 0 and gravity > 0
- {movespeed /= 1.5}
- }
- if keyboard_check(key_forward) and endlag = 0
- {
- if movespeed > movespeed_cap and movedir = 1 and endlag = 0
- {movespeed = movespeed_cap}
- if movespeed < movespeed_cap and movedir = -1 and endlag = 0
- {movespeed = -movespeed_cap}
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement