domingo, 8 de agosto de 2010

How to make your character move with arrow keys in flash 8

  1. First you will have to draw the character and if you want you can make a movment
  2. Second you will have to highlight the character and pres F8 to convert as a symbol
  3. Third then while you have the character highlighted you press F9 for the actions.
  4. Forth you will have to copy this action script below.
 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;
}
}

No hay comentarios:

Publicar un comentario

0_o

Best thing ever!!!!

Vrooom