
Just another Function for your pleasure. Have fun with it.
movieclip.prototype.katapult = function (hoehe,propX,propY,checkProp) {
if (signal != true) {
dim = random(30)/10;
_width = 2+(dim/2);
_height = 2+(dim/2);
}
signal = true;
this[propY] += dim;
this[propX] += (random(10)/10);
this[propX] -= (random(10)/10);
if (this[checkProp]>hoehe) {
this[checkProp] = 0;
}
}
Call:
[PHP]
(Horizontal Movement):
onClipEvent (enterFrame) {
katapult(600,"_y","_x","_x");
}
or
(Vert. Movement):
onClipEvent (enterFrame) {
katapult(450,"_x","_y","_y");
}
Privacidad ּ Publicidad ּ Prensa ּ Premios ּ Colaborar ּ Enlazarnos ּ Mapa del Sitio ּ Aviso legal ּ Boletín ּ Contacto
2001 - 2011 | Sitio creado y mantenido por Gabriel Marcelo Rodríguez
Hosting de alta calidad a bajo costo Neolo.com.ar