deltaluca

Untitled

Apr 17th, 2012
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. 1st way:
  2. --------
  3.  
  4. pre-handler:
  5. if fall-through key is pressed or normal direction says player is underneath
  6. return IGNORE
  7. else
  8. return ACCEPT_ONCE // so pre-handler is called again next-step incase key is pressed.
  9.  
  10.  
  11. 2nd way:
  12. --------
  13.  
  14. pre-handler:
  15. if normal direction says player is underneath, or fall-through key is pressed
  16. return IGNORE
  17. else
  18. return ACCEPT
  19.  
  20. ongoing-handler:
  21. if fall-through key is pressed
  22. foreach arbiter in callback object, arbiter.state = IGNORE
Advertisement
Add Comment
Please, Sign In to add comment