Advertisement
Guest User

Untitled

a guest
May 30th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. COMMENT: Check whether in the air
  2. if relative position (0,1) is collision free for Only solid objects
  3. set the gravity to 0.5 in direction 270
  4. else
  5. set the gravity to 0 in direction 270
  6. COMMENT: Limit the vertical speed
  7. if vspeed is larger than 12
  8. set variable vspeed to 12
  9. COMMENT: Check whether on a ladder
  10. if at relative position (0,0) there is object obj_ladder
  11. set the gravity to 0 in direction 270
  12. set variable vspeed to 0
  13. set the sprite to spr_climbing with subimage 0 and speed 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement