Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Player Collision with Jump through platform:
- if other.solid=true{move_contact_solid(direction,12) vspeed=0}
- Jump through platform Step Event:
- if obj_player.bbox_bottom > bbox_top {solid=false}else{solid=true} //Checks for player and determines if solid or not
- EXTRA CODES (gravity, movement, ect, not needed for platform to work)
- Player Step Event:
- if place_free(x,y+1){gravity=0.7 gravity_direction=270}else{gravity=0 gravity_direction=270} //Gravity
- if place_free(x-4,y)&& keyboard_check(vk_left) //Move Left
- {
- x-=4
- }
- if place_free(x+4,y)&& keyboard_check(vk_right) //Move Right
- {
- x+=4
- }
- if keyboard_check_pressed(vk_up)
- {
- vspeed-=12
- }
Advertisement
Add Comment
Please, Sign In to add comment