-
Hi all,
I'm looking to emulate the effect on http://www.sade.com
Can anyone tell me how this is done?
Most appreciated
-
Retired SCORM Guru
My bad, didn't read your subject.
That's just some simple motion and alpha tweening with a few images.
[Edited by PAlexC on 05-13-2001 at 12:59 PM]
-
I'm not talking about the way they fade in. I'm talking about the way the continuely float - And that when you click them you can drag them and throw them about.
Anyone?
-
There should be an tutorial on dragable menus up there.
You need to adapt this slightly.
Firstly you need to remove all the y axis mouse movement stuff out of it. That will cause the object to drag along a line.
Secondly you need a little script for momentum.
It needs to record how far the mouse has travel over time.
so momentum = (x coords mouse up - x coords mouse down)/ms
With this we can tell the object to keep moving after mouse release.
Lastly we need a friction value. This is simply momentum - friction = speed until speed = 0.
Loop all this in symbols and you're there
-
Thanks
The one thing that I would point out though is that the floating images are not connected to the mouse in any way, does this matter?
-
They get connected as soon as you click on them
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|