Advertisement
adesuryadi_

Button2

May 23rd, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. onClipEvent(enterFrame){
  2. if(Key.isDown(Key.RIGHT)){
  3. this._x += 10;
  4. this.gotoAndStop;
  5. }
  6. if(Key.isDown(Key.LEFT)){
  7. this._x -= 10;
  8. this.gotoAndStop;
  9. }
  10. if(Key.isDown(Key.UP)){
  11. this._y -= 5;
  12. this.gotoAndStop;
  13. }
  14. if(Key.isDown(Key.DOWN)){
  15. this._y += 5;
  16. this.gotoAndStop;
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement