I am trying to create a random particle effect that zooms from the distace to the foreground. I've seen and used methods like with "create fallign snow" but i'd like to change it to zoom instead of fall. (thinks starfield but with larger, scaling objects instead of stars)
has anyone seem a tutorial or sample with this type of effect?
thanks for any help or info!
SS
_______________________
Stevie Spin
Media Designer
I'd love to know how i could make random particles head towards a specific location using actionscript. I can loosely imagine how this might be done by calculating distance and moving closer step by step, but my acripting skillz aren't up to following it through.
Could you help me there?
thanks!
Steve
_______________________
Stevie Spin
Media Designer
sorry for the long wait, i came to work and forgot about the forums. here is the code to move the object to a target coordinate
speed =20;
target_x= //some number
target_y= //some number
tanx= target_x-this._x;
tany= target_y-this._y;
radangle = Math.atan2(tany,tanx);
this._rotation = radangle*180/Math.PI; // this is to point it in the right direction if you need to
deltay = speed * Math.sin(radangle);
deltax = speed * Math.cos(radangle);