onClipEvent (enterFrame) {
if (Key.isDown(Key.RIGHT)) {
this._x += 6;
}
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.LEFT)) {
this._x -= 6;
}
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.UP)) {
this._y -= 6;
}
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.DOWN)) {
this._y += 6;
}
}
y listo!
No hay comentarios:
Publicar un comentario