Salve,
sto provando ad utilizzare questo codice per far muovere a destra e sinistra un movie clip contenente dei pulsanti...
velocita = 30;
//posizione iniziale
this.a._y = 0;
this.a._x = 0;
meta = Stage.width/2;
max = Stage.width;
min = 0;
duplicateMovieClip(this.a, "b", 1);
this.onEnterFrame = function() {
x = _root._xmouse-meta;
if (x != 0) {
this.a._x = this.a._x-x/velocita;
this.b._x = this.b._x-x/velocita;
}
if (this.a._x<min+this.a._width/2) {
this.b._x = this.a._x+this.a._width;
}
if (this.b._x<min+this.a._width/2) {
this.a._x = this.b._x+this.b._width;
}
if (this.a._x>max-this.a._width/2) {
this.b._x = this.a._x-this.a._width;
}
if (this.b._x>max-this.a._width/2) {
this.a._x = this.b._x-this.b._width;
}
};
il problema è che mi duplica il filmato nel livello 1...
quando duplica il filmato questo mi va sopra il resto del filmato...
quello che chiedo è se è possibile far muovere il moviclip a destra e sinistra ma quando arriva alla fine o a sx o dx si ferma... o fare in modo che il mc non si duplichi in un livello...
anche con altri metodi basta che riesco a muovere sto clip...
grazie
![]()

grazie
Rispondi quotando
