Come posso flippare orizzontalmente un oggetto con un actionscript?
Grazie!
Come posso flippare orizzontalmente un oggetto con un actionscript?
Grazie!
oggetto._xscale = -oggetto._xscale
Grazie funziona!
Però ho un problema:
Questo è il mio codice:
onClipEvent (enterFrame) {
if (key.isdown(key.right)) {
this.play();
this._x = this._x+20;
}
if (key.isdown(key.left)) {
this.play();
this._x = this._x-20;
this._xscale = -this._xscale
}
}
onClipEvent (keyUp) {
this.stop();
}
Quando clicco sulla freccia sinistra l'oggetto viene flippato solo per il primo frame ( il resto rimane invariato ).
Come posso fare?