esparadrapo
%Europe/Berlin %510 %2005, 13:14
hoi
Ik probeer een antal bollen doen zweven, maar het lukt me niet.
beweeg(bal1, bal1._x, bal1._y)
function beweeg(bal, xpos, ypos) {
controlMenu.onEnterFrame = function() {
bal._x += .1
bal._y += .1
if(bal._x >= random(10)+xpos or bal._y >= random(10)+ypos){
bal._x= xpos
bal._y= ypos
}
if (bal._alpha<100) {
bal._alpha += 20;
}
};
}
Dit is mijn code, zodat je ziet het gaat veel te hard
Kan iemand mij helpen om het wat zwevender te maken??
thnx
Ik probeer een antal bollen doen zweven, maar het lukt me niet.
beweeg(bal1, bal1._x, bal1._y)
function beweeg(bal, xpos, ypos) {
controlMenu.onEnterFrame = function() {
bal._x += .1
bal._y += .1
if(bal._x >= random(10)+xpos or bal._y >= random(10)+ypos){
bal._x= xpos
bal._y= ypos
}
if (bal._alpha<100) {
bal._alpha += 20;
}
};
}
Dit is mijn code, zodat je ziet het gaat veel te hard
Kan iemand mij helpen om het wat zwevender te maken??
thnx