Guest User

Untitled

a guest
Jan 21st, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. onClipEvent (enterFrame) {
  2.     if (this.hitTest(_root.ball1)) {
  3.         if (Key.isDown(Key.RIGHT)) {
  4.             _root.ball1._x -= 40;
  5.         } else if (Key.isDown(Key.RIGHT)) {
  6.             _root.ball1._x -= 40;
  7.         } else if (Key.isDown(Key.LEFT)) {
  8.             _root.ball1._x += 40;
  9.         } else if (Key.isDown(Key.UP)) {
  10.             _root.ball1._y += 40;
  11.         } else if (Key.isDown(Key.DOWN)) {
  12.             _root.ball1._y -= 40;
  13.         }
  14.     }
  15. }
Add Comment
Please, Sign In to add comment