Posted By
|
Message
|
JP
Registered 07/06/2003
Points 1338
|
26th August, 2004 at 23:25:23 -
How do I make icons expand as the mouse gets closer on the x axis for hor., or y axis if the dock is vert., not unlike the dock for the mac osx here: http://www.theandyzone.com/computer/osx/dock3.html
Steve Zissou: Anne-Marie, do all the interns get Glocks?
Anne-Marie: No, they have to share one.
|
Radix hot for teacher
Registered 01/10/2003
Points 3139
|
26th August, 2004 at 23:40:02 -
I'd have a one-frame animation in each direction, with direction 31 being the smallest and 0 being the largest. Then I'd use abs(X(mouse)-X(icon)) (or... sqrt((X(mouse)-X(icon))*(X(mouse)-X(icon))), rather) to determine the distance of the mouse from the icon, divide this by an arbitrary factor to taste, and set that to the direction using the 'use caculation' in set direction.
n/a
|
JP
Registered 07/06/2003
Points 1338
|
27th August, 2004 at 03:53:05 -
/radix
I can't even tell if your lying to me.
/dustin
you have to admit OSX is sexy and sleek.
Steve Zissou: Anne-Marie, do all the interns get Glocks?
Anne-Marie: No, they have to share one.
|
Radix hot for teacher
Registered 01/10/2003
Points 3139
|
27th August, 2004 at 04:31:13 -
No, that's really how I'd do it.
n/a
|
Kris Possibly Insane
Registered 17/05/2002
Points 2017
|
27th August, 2004 at 06:41:41 -
or to make it faster, get rid of the square root, and just square all your other distances (100 instead of 10, etc etc)
"Say you're hanging from a huge cliff at the top of mt. everest and a guy comes along and says he'll save you, and proceeds to throw religious pamphlets at you while simultaniously giving a sermon." - Dustin G
|
醤油の兵士 Almost Human
Registered 12/06/2002
Points 173
|
28th August, 2004 at 02:05:45 -
I know chris branch made an example for this using APOs
As a boy, I wanted to be a train. I didn’t realize this was unusual—that other kids played with trains, not as them.
|
|
|