Advertisement
Guest User

Untitled

a guest
May 15th, 2014
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. if place_free(x,y+3)
  2. gravity = 0.90
  3. else
  4. gravity = 0
  5.  
  6. if vspeed < 0 and !place_free(x,y-12)
  7. {
  8. y = yprevious
  9. vspeed = 2
  10. }
  11.  
  12. if vspeed > 0 and !place_free(x,y+vspeed)
  13. {
  14. move_contact_solid(270, vspeed)
  15. gravity = 0
  16. vspeed = 0
  17. }
  18. if keyboard_check(vk_left) and !keyboard_check(vk_right)
  19. {
  20. image_xscale = -1
  21. if place_free(x-4,y)
  22. {
  23. x -= 2
  24. }
  25. }
  26. if !keyboard_check(vk_left) and keyboard_check(vk_right)
  27. {
  28. image_xscale = 1
  29. if place_free(x+4,y)
  30. {
  31. x += 2
  32. }
  33. }
  34. if keyboard_check_pressed(vk_up) and place_free(x,y-9) and !place_free(x,y+5)
  35. vspeed -= 7
  36.  
  37.  
  38. if bbox_top>room_height
  39. room_restart()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement