Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SPIRAL TUNNEL HELP!!!!!! 1

Status
Not open for further replies.

killbuzz

Technical User
Mar 21, 2001
103
US
Well this is about the most retarded thing I ever posted but I cant get the dang thing to work.. Ok this is what I’m doing, I’m trying to make a spiral like a tunnel it looks like your going through but I cant get the thing to work does someone have one or made one that they can share with me so I can see how its done? If you don’t understand I found one on the net this is what I’m trying to do…
<THE SPIRAL THINGY>

THANKS killbuzz
 
make your spiral graphic and tween it 180 degrees clock wise(or counter which ever)..then from that spot tween it another 180 degrees..thus finishing the effect....
e.gif


carlsatterwhite@endangeredgraphics.com
 
or, make draw your spiral graphic, slect it and press F8 to turn it into a movie-clip.

Give it an instance name , right-click it on the main stage and select Actions, insert the following:

onClipEvent (enterFrame) {
setProperty (&quot;_root.yourmc&quot;, _rotation, _root.yourmc._rotation+3);
}

Change the value of 3 to increase or decrease the speed of rotation.

dave
dave@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^​
 
Here's a script that does the same thing. It's rough and slooooooooooww (even on a fast machine) becuase I haven't optimised the maths (this would work better with an array acting as a lookup table) but it's fun.

Just attach this to any movie clip and give the clip the instance name &quot;dot&quot; (my clip was, you guessed it, a dot).

onClipEvent (load) {
degrees = 0;
centre = 200;
}
onClipEvent (enterFrame) {
for (i=1; i<1080; i += 30) {
radius = (i/10);
duplicateMovieClip (_root.dot, _root.dot+i, i);
_x = (math.cos(((degrees+i)/180)*math.PI))*(radius)+centre;
_y = (math.sin(((degrees+i)/180)*math.PI))*(radius)+centre;
_xscale = radius;
_yscale = radius;
}
if (degrees<360) {
degrees++;
} else {
degrees = 0;
}
updateAfterEvent();
}


Like I say, it really slugs your machine (even a dual processor PIII) but if you tuned it I think it could be pretty effective.
 
jeesus wangbar..you have got way to much time on your hands..you and davdesign should get together and build me a time machine..all that knowledge you guys have..i want to be able to click a button in my swf and have it transport me back to the days when we settled the America's..i want to get in on some cheap real estate...

whats the script for that? :)
e.gif


carlsatterwhite@endangeredgraphics.com
 
dave the code you posted i tried and it didnt work.. i did everything you said..

 
Thanks dave =) you the best man!!!


killbuzz
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top