Flasher Archive

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


Subject: FLASH: Play a duplicated MC... doesn't work.. HELP!!
From: corstiaan Smorenburg
Date: Thu, 29 Jul 1999 10:52:01 +0100

Hi,
 
for a game I'm making, I have astroids floating through the screen.
I duplicate them and move them across the screen and so far it worked.
 
I had to change the code a little, I put a 'STOP' in the first frame of my 'astroid' MC so I could tell it to 'PLAY'
this is the duplication-code (which is played repeatedly):
 
      Set Variable: "newast" = "ast"&astnum
      Duplicate Movie Clip ("/astr", newast, astnum)
      Set Property ("/"&newast, X Position) = Random (245) +5
      Set Property ("/"&newast, Y Position) = "-50"
      Set Property ("/"&newast, Visibility) = "1"
      Begin Tell Target ("/"&newast)
            Play                                                                <-------   somehow this won't work...  ;(
      End Tell Target

      Set Variable: "time" = "0"
      Set Variable: "dist" = Random (30) +20
      Set Variable: "astnum" = astnum + 1
It does duplicate, it becomes visible, but somehow, it won't play...
what's wrong? I have a feeling it has to do something with the naming in the 'Tell Target' - line..
any clues? John perhaps?
 
The code I use to move the astroid is in the MC of the astroid (so it takes care of the movement itself):
 
FRAME 3:
Set Property ("", Y Position) = _y + 10
If (_y > 550)
      Remove Movie Clip ("")
End If
Go to and Play (2)
Thanx in advance.
 
Corstiaan Smorenburg aka     -=#TheMadC...#=-
corstiaanatflash [dot] a2000 [dot] NOSPAM [dot] nl (mailto:corstiaanatflash [dot] a2000 [dot] NOSPAM [dot] nl)
ICQ#:6904753 (at home)
ICQ#:19518298 (at work)

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