View Full Version : This is Awesome ...how is it done???
PintSize
March 18th, 2004, 07:48 AM
check this out.... http://disneyworld.disney.go.com/wdw/?bhcp=1 and http://disney.go.com/destinations/flash/ the mouse has some kind of random movenment that follows it, can anyone tell me how this is done?
Thanks...
Alex 4 Cologne
March 18th, 2004, 09:26 AM
Read the Snow 2.0 Tutorial here on Kirupa.com Flash MX 2004 Tutorial Section. This should give you an idea ;)
PintSize
March 18th, 2004, 11:05 AM
i have done that tutorial but i dont know how to attach it to the mouse and follow the _y _x cord.? help out?
tommythewolfboy
March 18th, 2004, 11:11 AM
http://www.kirupa.com/developer/mx/followease.htm
PintSize
March 18th, 2004, 11:20 AM
ok i used that with the snow, and what happens is the snow starts falling and then it snaps to the mouse, then it it like a box of white snow that dosent really move, it there a action that can makle the snow look like the links i posted above...goes out, or fades away...i keep getting errors on my syntax that i cant seem to fix. any fla.'s you can post or AS's?
Pneumonic
March 18th, 2004, 03:07 PM
O.k. I've been thinking about this ALOT and I think I may have come to the conclusion whilst waiting for my macro-economics class to start. What you actually need to do is create the movie of the dust falling and disappearing. Ok. so check it. ctrl+f8 and create a new movie clip called snow. then go ahead and make yer snow. now select that and f8 it and name that snow_move then open that up. select the object again, and name it snow_alpha. Now use a motion tween and make the snow's alpha zero at the end of the tween. now go back to snow_move and make a motion guide layer (or something) and simulate the snow falling a short distance. now you can throw the clip in your main movie. Make a new layer use a mouseevent on (drag) and assign the movie to it, and use the kirupa tutorial that the other guy posted, for the spacing of each. Oh yeah and you gotta duplicate the clip and all. so that'll do er for ya I think....I haven't tried it, but I'm doin' that now. It sounds like it should work...LoL
PintSize
March 18th, 2004, 04:17 PM
ight sounds good, let me know if what u tryed worked becasue i cant get it
Pneumonic
March 18th, 2004, 04:18 PM
I've been workin' on this for some time now, and the only thing I can think of is that you should make the alpha tween. I'm not quite sure how to make the movie load on a mouse movement, but maybe you can. More importantly, figuring out how to kill the movie clip when the mouse stops moving. You'd have to get the x and y coordinates and set them as the starting positions new variable, I guess. I'm not good at this a.s. stuff, though I try. Hope it helps.
PintSize
March 18th, 2004, 04:24 PM
ya, but it looks like its random movement and not just a constant tween u know? anyone else? help out....
Pneumonic
March 18th, 2004, 04:26 PM
Here's what I came up with...not great, but maybe it'll help...The idea is there, I just can't get it further...ya know...oh and I know my mc is a level too deep..doesn't matter, just takes up a lil more space...
PintSize
March 18th, 2004, 04:27 PM
i cant open it... some error....
Pneumonic
March 18th, 2004, 04:28 PM
Ok...I peeped the second site, and check it....It is a tween...it's just that when you move the mouse it randomizes which direction each mc goes...see what I'm sayin? It also randomizes how far it goes based on the strength of your mouse movement, as well as how many go based on the same principle. That is your quandry....how to get them to "explode" so to speak...watch it closely and you'll see...I also noticed that they have 1 separate mc that does move more sporadically...it moves from the left clockwise to the right disappearing. I think that is what gives it the random movement look if anything...that only appears at times though....hope that at least helps
PintSize
March 18th, 2004, 04:33 PM
allright, i get what your sayin, i just thought someone would know action script that u could put in...i didnt know it would be all this stuff, i will work on it but if someone knows AS let me know...and could u post a swf. of your file becasue i cant open that swf.
Seticus
March 18th, 2004, 05:57 PM
I gave it a shot: here is the code:onClipEvent (load) {
Mouse.hide();
rot_ran = Math.random()+0.0000001;
dist_ran = Math.random()*10+4;
}
onClipEvent (enterFrame) {
radian = rot_ran*Math.PI;
_y += -Math.cos(radian)*dist_ran;
_x += Math.sin(radian)*dist_ran;
if (_alpha>0) {
_alpha -= dist_ran;
_xscale = _yscale -= dist_ran;
} else {
this.removeMovieClip();
}
}for the mc and:function mousedrag() {
particle._x = _xmouse;
particle._y = _ymouse;
particle._alpha = 100;
particle._xscale = particle._yscale = 100;
particle.dist_ran = 0;
}
setInterval(mousedrag, 10);
_root.onMouseMove = function() {
if (i == 10) {
newpart();
i = 0;
} else {
i++;
}
};
function newpart() {
for (i=lasti; i<lasti+5; i++) {
duplicateMovieClip(_root.particle, "particle"+i, i);
}
lasti += 5;
}for the frame
Just one mc called "particle" inside the stage
PintSize
March 18th, 2004, 07:10 PM
thank you, i didnt just DL the file and "gank it" i read your code, and would like to say THANK YOU....you are the tightest person ever...YOUR THE FLASH MASTA
Seticus
March 19th, 2004, 09:24 AM
:blush: You're overreacting, it was a pleasure helping you.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.