Guest User

Untitled

a guest
Jan 21st, 2018
64
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.LEFT)) {
  6.             _root.ball1._x += 40;
  7.         } else if (Key.isDown(Key.UP)) {
  8.             _root.ball1._y += 40;
  9.         } else if (Key.isDown(Key.DOWN)) {
  10.             _root.ball1._y -= 40;
  11.         }
  12.     }
  13. }
  14. onClipEvent (enterFrame) {
  15.     if (_root.key2 == false){
  16.         unloadMovie(this);
  17.     }
  18. }
Add Comment
Please, Sign In to add comment