Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | RE: FLASH: RE: Challenge? |
From: | Branden J. Hall |
Date: | Fri, 19 Nov 1999 18:32:59 GMT |
Actually, for that demo, you don't need trig at all...
its all about kinetic energy in the x and y dimension.
Check out www.figleaf.com/development/flash4/paddleballs.swf
that is doing the exact same idea as the demo, except the point of
equalibrium is always set to be a static point. To make an MC chase the
mouse like this simply make an invisible MC on the stage, name the instance
invisible, and add a frame action to start dragging it(make sure you turn
LOCK TO CENTER on). Then create another MC of your chase object, put it on
the stage and name the instance chaser. Finally, create another MC and put
the following actions on both frames then place this MC on the stage.. wa
la!
Set Variable: "xspeed" = xspeed*.95+((/invisible:_x-/chaser:_x)/20)
Set Variable: "yspeed" = yspeed*.95+((/invisible:_y-/chaser:_y)/20)
Set Property ("/chaser", X Position) = /chaser:_x+xspeed
Set Property ("/chaser", Y Position) = /chaser:_y+yspeed
as you can see, the MCs speed is 1/20th its distace from the inivisible MC
added to 95% of the orginal speed. The reason for the 95% is so that the MC
eventually slows down.
-= Branden J. Hall
-= Multimedia Developer/Instructor
-= Fig Leaf Software
-----Original Message-----
From: ownerchinwag [dot] com [ownerchinwag [dot] com]On">mailto:ownerchinwag [dot] com]On Behalf Of Ian Chia
Sent: Friday, November 19, 1999 11:41 AM
To: flasherchinwag [dot] com
Subject: Re: FLASH: RE: Challenge?
This is pretty simple really.
If you've got access to Director 7, you'll find a very
similar open-source Lingo demo that I made on the CD in the
Director 7:Beatnik:Example Projects:Astrogrrrl-and-friends folder.
Otherwise, a JavaScript version of a similar thing is at:
http://www.ritzcafe.com.
To convert to F4, use John Croteau's trig library, and port
some relatively simple trig scripts to animate the xy of
each cube.
The harder thing which is missing from this demo is a true z sort.
The nice thing about this demo is the kinetic energy and
momentum from the mouse motion - nice touch.
- Ian
> http://www.method.org/website/experiment/orbital.html
>
> Anyone want to give me a 'simplified' fla of this?
> thanks
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Streaming Media WEST '99 Conference & Exhibition
"The Worlds largest Internet Audio & Video Event"
December 7 - 9, San Jose Convention Center, California
Reserve your space today at http://www.streamingmedia.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpchinwag [dot] com
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Streaming Media WEST '99 Conference & Exhibition
"The Worlds largest Internet Audio & Video Event"
December 7 - 9, San Jose Convention Center, California
Reserve your space today at http://www.streamingmedia.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpchinwag [dot] com
Replies
Re: FLASH: RE: Challenge?, Ian Chia
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]