sWo0p
July 3rd, 2003, 01:50 PM
Is there anyway that i can make this script so my MC moves in a kurling motion?
// Gives them vars
onClipEvent (load) {
this._x = 275;
this._y = 200;
this._xscale = 0;
this._yscale = 0;
xspeed = -25+int((random(40)+1));
yspeed = -25+int((random(40)+1));
growth = .80;
}
// This part makes um move
onClipEvent (enterFrame) {
this._x += xspeed;
this._y += yspeed;
this._xscale += growth;
this._yscale += growth;
if (this._x>300 or this._x<0 or this._y>300 or this._y<0 or this._xscale>150) {
this._x = 250;
this._y = 200;
xspeed = -20+int((random(40)+1));
yspeed = -20+int((random(40)+1));
this._xscale = 0;
this._yscale = 0;
}
}
movement expl.. :
This script makes a spot move from the center out en scales um a little...
I want expl.. :
Same movement but with a kurling motion... or a slite curve...
// Gives them vars
onClipEvent (load) {
this._x = 275;
this._y = 200;
this._xscale = 0;
this._yscale = 0;
xspeed = -25+int((random(40)+1));
yspeed = -25+int((random(40)+1));
growth = .80;
}
// This part makes um move
onClipEvent (enterFrame) {
this._x += xspeed;
this._y += yspeed;
this._xscale += growth;
this._yscale += growth;
if (this._x>300 or this._x<0 or this._y>300 or this._y<0 or this._xscale>150) {
this._x = 250;
this._y = 200;
xspeed = -20+int((random(40)+1));
yspeed = -20+int((random(40)+1));
this._xscale = 0;
this._yscale = 0;
}
}
movement expl.. :
This script makes a spot move from the center out en scales um a little...
I want expl.. :
Same movement but with a kurling motion... or a slite curve...