Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- onClipEvent(enterFrame){
- if(Key.isDown(Key.RIGHT)){
- this._x += 10;
- this.gotoAndStop;
- }
- if(Key.isDown(Key.LEFT)){
- this._x -= 10;
- this.gotoAndStop;
- }
- if(Key.isDown(Key.UP)){
- this._y -= 5;
- this.gotoAndStop;
- }
- if(Key.isDown(Key.DOWN)){
- this._y += 5;
- this.gotoAndStop;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement