Advertisement
Guest User

Untitled

a guest
Feb 25th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. def interval():
  2. on_platform = False
  3. for plat in platforms:
  4. if player.get_x() > plat.get_x() - 25 and player.get_x() < plat.get_x() + 25:
  5. on_platform = True
  6. if on_platform is False and player.get_y() > -190:
  7. player.set_gravity_on()
  8. stage.event_interval(interval, 0.1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement