Código ActionScript :
onClipEvent (enterFrame) {
if (Key.isDown(Key.UP)) {
this._y -= 4;
} else if (Key.isDown(Key.DOWN)) {
this._y += 4;
}
if (Key.isDown(Key.LEFT)) {
this._x -= 4;
} else if (Key.isDown(Key.RIGHT)) {
this._x += 4;
}
}Pues anda bien, pero quiero que si choca contra la pared no ande mas se quede parado, es bien sencillo pero no lo encuentro y no me sale.
Gracias de antemano.
