Guest User

Untitled

a guest
Jun 20th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. onClipEvent (enterFrame){
  2. if (Key.isDown(Key.UP)){
  3. this.gotoAndStop(2);
  4. }
  5. if (Key.isDown(Key.DOWN)){
  6. this.gotoAndStop(1);
  7.  
  8. }
  9. if (Key.isDown(Key.RIGHT)){
  10. this.gotoAndStop(4);
  11. }
  12. if (Key.isDown(Key.LEFT)){
  13. this.gotoAndStop(3);
  14. }
  15. if (Key.isDown(Key.UP) and Key.isDown(Key.RIGHT)){
  16. this.gotoAndStop(2);
  17. _root.char.costas.nextFrame();
  18. }
  19. if (Key.isDown(Key.UP) and Key.isDown(Key.LEFT)){
  20. this.gotoAndStop(2);
  21. _root.char.costas.nextFrame();
  22. }
  23.  
  24. if (Key.isDown(Key.DOWN) and Key.isDown(Key.RIGHT)){
  25. this.gotoAndStop(1);
  26. _root.char.frente.nextFrame();
  27.  
  28. }
  29. if (Key.isDown(Key.DOWN) and Key.isDown(Key.LEFT)){
  30. this.gotoAndStop(5);
  31.  
  32.  
  33. }
  34. }
Add Comment
Please, Sign In to add comment