Ver Mensaje Individual
  #2 (permalink)  
Antiguo 06/07/2004, 19:34
Avatar de ¬...
¬...
 
Fecha de Ingreso: noviembre-2003
Ubicación: Guatemala
Mensajes: 742
Antigüedad: 20 años, 4 meses
Puntos: 4
pegale este codigo a un movieClip:
Código:
onClipEvent(load){
friccion=5;
}
onClipEvent(enterFrame){
xt=_parent._xmouse;//target en x = mouse x
yt=_parent._ymouse;//target en y = mouse y
xx=xt-_x;//le damos una velocidad en relacion a la distancia que esta el mouse
yy=yt-_y;
_x+=xx/friccion;//suavizamos el movimiento
_y+=yy/friccion;
}
__________________
'_'

...