Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: FLASH: Random Starting of a bunch of MC's
From: Robert Bleeker
Date: Mon, 3 Apr 2000 05:28:09 +0100

Hi Darren,

You will have to use a 2 frame loop to do this as there is nothing happening
to the stage while in the "Loop While" statement.
Also you will have to set the "TotalStars" variable before going into the
loop.

Robert


on 3/4/00 1:55 PM, Darren Critchley at darrencattelus [dot] net wrote:

> Ok, me here again, after much playing around and input, I managed to put
> between 5 and 25 MC's on the stage at random positions and random sizes
> (btw Cheri, I chose 20% sizing as the max because I drew the orignal MC
> WAY TOO big)
> So here now is the dillema, I want to have each MC start at a fairly
> random time, the code below is what I have tried to use, but all MC's
> seem to start at the same time.
> TotalStars is the total amount of random stars duplicated.
> The MC's are labelled Star1 to Star'X'
> All Star MC's have been stopped.
>
> Set Variable: "StartTime" = GetTimer
> Set Variable: "TimeWait" = Random(2000)+1
> Loop While (TotalStars<>0)
> Set Variable: "CurrentTime" = int(GetTimer)
> If (CurrentTime>=TimeWait)
> Set Variable: "Starname" = "Star" & TotalStars
> Begin Tell Target (Starname)
> Play
> End Tell Target
> Set Variable: "StartTime" = int(GetTimer)
> Set Variable: "TotalStars" = TotalStars-1
> End If
> End Loop
> Stop
>
> In the designer mode, this code causes an error because more than 20000
> loops are completed. The second problem is when compiled, they alll
> flash at the same time.
> Anybody got any ideas?
>
> Darren.
>
> --
> http://www.aurorainformationsystems.com/
>
> http://persweb.direct.ca/darrenc/


flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and The Flash Film Festival
"The World�s Premier Flash Solutions Conference and Expo"
March 27-29, Nob Hill Masonic Center, San Francisco, California

-Register before Feb 25 and save $200!!-- www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  FLASH: Random Starting of a bunch of MC', Darren Critchley

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]