flash help
- Started
- Last post
- 9 Responses
- effeuelle
i'm going crazy to find a good tutorial about collision with mouse (like on http://www.exopolis.com/site/ )
any idea?
- lvl_130
i'd recommend picking up this book http://www.amazon.com/exec/obido…
i'm trying to find the web address that has the fla for download but can't find it. aarrrggg
- Abandoned0
wow that's helpfull thanks. I'll get right one that. Anything usefull?
- Abandoned0
ahahahaha I thought this was my thread....idiot! haha
- effeuelle0
burpz*
- effeuelle0
anyone?
- ok_not_ok0
create the movieClip that u wanna bounce around..give it an instance name "box_mc"
inside this movieClip drop this script in the first frame.
//==theX = _x;
theY = _y;
smooth = 1;
timer = 0;
mTime = 60;
function theDo() {
theX = theX + (-20 + Math.random() * 40);
theY = theY + (-20 + Math.random() * 40);
theRot = theRot + (-40 + Math.random() * 80);
smooth = 0.050000 + Math.random() * 0.200000;
timer = 0;
this.onEnterFrame =loop;
} // End of the function
function loop() {
_x = _x + (theX - _x) * smooth
_y = _y + (theY - _y) * smooth
_rotation = _rotation + (theRot - _rotation) * smooth
timer++;
if (timer >= mTime) {
delete("onEnterFrame");
} // End if
} // end function
go back to the _root, then type this in the first frame:
box_mc.onRollOver = function(){
this.theDo();
}
}wont work in AS 2.0 player 7..wroks well in AS1 player 6
goodluck!
- effeuelle0
really really thaks man !
- effeuelle0
it's work for me....
.....but sometime my mc start to rotate, rotate ,rotate , rotate.....