Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
| Subject: | Re: FLASH: Flash: Duplicating MC |
| From: | #LCARS |
| Date: | Fri, 12 May 2000 07:18:33 +0100 |
am 11.5.2000 20:10 Uhr schrieb Ed Harvey unter eharvey
> Does anyone know of a good tutorial on duplicating MCs. I have an animation
> of one ant crawling across the screen. I want to make my one ant into about
> 100 different ant, is there a way to make multi copies of one MC with the
> duplicating MC?
>
> Ed
You can do that with...
-- set x as counter
Set Variable: "x" = 1
-- set random horizontal location
Set Variable: "XRange" = 400
-- set random vertical location
Set Variable: "YRange" = 200
-- set last "ant" to place
Set Variable: "last" = 100
-- Make the original movieclip invisible (just for fun ;)
Set Property (/ancestor", Visibility, false)
-- Loop from 1 to last "ant" to place
Loop While (x <= last)
-- Duplicate parent clip and name it "ant"&x -> "ant1"
Duplicate Movie Clip ("/ancestor", "ant"&x, x)
--set the X location of the created "ant"...
Set Property ("ant"&x, X Position) = Random (XRange)
-- set Y Position of the created "ant"
Set Property ("ant"&x, Y Position) = Random (YRange)
-- increase counter by 1
Set Variable: "x" = x+1
End Loop
Good Luck!
-Dominik
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the last 100 messages from the flasher list NOW
http://www.chinwag.com/flasher/last100.shtml
Flash books http://www.chinwag.com/flasher/books.shtml
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email help
Replies
FLASH: Flash: Duplicating MC, Ed Harvey
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]

