A simple tutorial showing how to make a character move around the screen using arrow keys, The Code Follows: onClipEvent(load){ speed=7; } onClipEvent(enterFrame){ if(Key.isDown(Key.RIGHT)){ _x+=speed; } if(Key.isDown(Key.LEFT)){ _x-=speed; } if(Key.isDown(Key.DOWN)){ _y+=speed; } if(Key.isDown(Key.UP)){ _y-=speed; } } *EDIT* Thanks guys for over 10,000 views! code pour embarquer la vidéo : >>> http://www.youtube.com/embed/cgkNqZQx_hg <<< |