Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- onClipEvent (enterFrame){
- if (Key.isDown(Key.UP)){
- this.gotoAndStop(2);
- }
- if (Key.isDown(Key.DOWN)){
- this.gotoAndStop(1);
- }
- if (Key.isDown(Key.RIGHT)){
- this.gotoAndStop(4);
- }
- if (Key.isDown(Key.LEFT)){
- this.gotoAndStop(3);
- }
- if (Key.isDown(Key.UP) and Key.isDown(Key.RIGHT)){
- this.gotoAndStop(2);
- _root.char.costas.nextFrame();
- }
- if (Key.isDown(Key.UP) and Key.isDown(Key.LEFT)){
- this.gotoAndStop(2);
- _root.char.costas.nextFrame();
- }
- if (Key.isDown(Key.DOWN) and Key.isDown(Key.RIGHT)){
- this.gotoAndStop(1);
- _root.char.frente.nextFrame();
- }
- if (Key.isDown(Key.DOWN) and Key.isDown(Key.LEFT)){
- this.gotoAndStop(5);
- }
- }
Add Comment
Please, Sign In to add comment