Question
i don't know why my moving code not work
import flash.events.KeyboardEvent;
stop();
function movecar (event:KeyboardEvent):void{
if (event.keyCode == 37){
car.x -=5;
}
}
stage.addEventListener(KeyboardEvent.KEY_DOWN,movecar);
import flash.events.KeyboardEvent;
stop();
function movecar (event:KeyboardEvent):void{
if (event.keyCode == 37){
car.x -=5;
}
}
stage.addEventListener(KeyboardEvent.KEY_DOWN,movecar);
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.