Ver Mensaje Individual
  #5 (permalink)  
Antiguo 30/12/2007, 22:05
mogoxd
 
Fecha de Ingreso: diciembre-2007
Mensajes: 77
Antigüedad: 16 años, 3 meses
Puntos: 3
Re: Problema con profuncidad de movie clip

Es una generacion aleatoria de nubes.

Mira el codigo

XXxx ActionScript de escena xxXX

for (i=1; i<40; i++) {
duplicateMovieClip("nube", "nube"+i, i);
}

XXxx Actioncript de la nube xxXX

onClipEvent (load) {
velocidad = (random(20)+10)*0.01;
_yscale = random(90)+80;
_xscale = _yscale;
_alpha = random(10)+30;
_y = random(70)+20;
_x = random(955);
_rotation = random(360)+50;
}
onClipEvent (enterFrame) {
if (_x<=-20) {
_velocidad = (random(20)+10)*0.1;
_yscale = random(90)+80;
_xscale = _yscale;
_alpha = random(10)+30;
_y = random(70)+20;
_x = 1000;
_rotation = random(360)+50;
} else {
_x = _x-velocidad;
giro = random(200);
if (giro>=190) {
_rotation++;
}
}
}

Ahora la cuestion es si se le puede enviar atras del esos 2 mapas de bits.

Gracias