View Full Version : scripted wave effect
raskolnikov
12-12-2006, 03:56 AM
dear scripters,
here are some wave effects online which i have no clue how the mechanics work.
http://www.yugop.com/
click on link 2: border (bottom left)
and www.neave.com
hover the top border
i try running a search on tutorial but i came up empty. does anyone knows how to do this effect or is there any tutorials around? any help will be appreciated.
christian
Well, I'm guessing by your post count that you are looking for something more technically impressive, but the second one can be "faked" pretty easily with just animation and some simple as.
I have created a similar effect using this method:
Create your line and shape tween it from bent left, to straight, to bent right, across enough frames to make it seem fluid.
Put a stop command on every frame.
Use the mouse coordinates to set the frame of the tween.
It simply moves forward or backwards in its own timeline based on wether the mouse is forward or backwards of its middle point.
I don't have my script handy, but I think it was something like this, you just need to set the mouse coordinates that activate the line, and the range you can push it before it stops activating.
if (_root._xmouse>lineMCmidPoint){
numDiff = Math.round(_root._xmouse-lineMCmidPoint);
lineMC.gotoAndPlay(numDiff);
}
else if (_root._xmouse<lineMCmidPoint){
numDiff = Math.round(lineMCmidPoint-_root._xmouse);
lineMC.gotoAndPlay(numDiff);
}
sunlis
12-19-2006, 12:10 AM
I don't think that the second one could be faked, if you move your mouse along the borders you'll realise that it moves on the corners and anywhere along the border.
raskolnikov
12-19-2006, 02:51 AM
thanks for the help.
I have found what i was looking for...
http://www.actionscript.org/forums/showthread.php3?t=90208
this script is pretty intense though
:eek:
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.