Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | Re: FLASH: moving 1,000 MC simultaneously? |
From: | Robert Bleeker |
Date: | Fri, 16 Jun 2000 11:26:33 +0100 |
Hey, why not put all the stars inside a MC and just move that MC's x and y.
Robert
Robert Bleeker
CADRE design
http://www.cadre.com.au
+61-2-96859889
-+-
on 16/6/00 4:32 PM, Cheri Harder at chericahome [dot] com wrote:
> I think, something like this (pseudo-code) in a loop so it does it for each
> star (NOT TESTED THOUGH!)
>
> Set Variable: "centerx" = "377.3"
> Set Variable: "centery" = "207.3"
> Set Variable: "n" = 1
> Loop While (n < 1001)
> Set Property ("star" & n, X Position) = GetProperty ( "star"&n,
> _x )+(centerx-GetProperty("star"&n,_x)*.20)
> Set Property ("star" & n, Y Position) = GetProperty ( "star"&n,
> _y )+(centerx-GetProperty("star"&n,_y)*.20)
> Set Variable: "n" = n+1
> End Loop
>
> This should calculation 1/5 of the difference between the current position
> and the center and move it that far. Somehow, though, I think that this
> would never get them to the center, because when you put the same code in
> the next frame, it will re-calculate the X & Y position and only move it 1/5
> of the new difference. And besides that, it's late & I promised never to
> give advice after midnight again. Oh, it's ok, is only 11:30.
>
> But maybe this is enough to get you going, eh?
>
> ~~~~Cheri Harder~~~~~
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and the Flash(tm) Film Festival
July 24-26, 2000, NEW YORK CITY, Hammerstein Ballroom
www.flashforward2000.com
Produced by United Digital Artists and lynda.com
Sponsored by Macromedia, Adobe Systems, Fusion, Inc, AtomFilms,
shockwave.com and Electric Rain.
1.877.4.FLASH.4 or (1.805.640.6679 outside the US and Canada)
Register before June 30 and save $200!!-- www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpchinwag [dot] com
Replies
Re: FLASH: moving 1,000 MC simultaneousl, Cheri Harder
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]