This is a discussion on "Flash duplicateMovieClip over time" within the Flash & Multimedia Forum section. This forum, and the thread "Flash duplicateMovieClip over time are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Flash duplicateMovieClip over time
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Flash duplicateMovieClip over time
I am developing a flash game, and things are going pretty good. The problem I have run into is succesfully duplicating the enemy exponentially over time.
Any help or suggestions would be great. Thanks Garrett |
|
|
|
#2
|
|||
|
|||
|
Re: Flash duplicateMovieClip over time
What part are you having problems with? Can you duplicate any sprites automatically? D'you run into problems when you make more than a certain number? Is it just the exponential you're worried about?
Please explain your problem with more clarity! |
|
#3
|
|||
|
|||
|
Re: Flash duplicateMovieClip over time
I am using a standard duplicate MMC script:
// Currrent Code for (i=6; i<=numEnemy; i++){ enemy1.duplicateMovieClip("enemy"+i, i+100); } But it only produces one enemy at a time. I need them to multiply over time. i have tried various code combinations, but haven't found a solution yet. I tried to loop frames, gotoAndPlay (2); // in frame 2 numEnemy=+1 // Try the iF then to make more clips // This works but is not stable will weapon has no effect // ++++ if (numEnemy <=10) { _root.enemy.duplicateMovieClip("enemy"+i, i=+ i); trace("duplicatemovie clips"); trace (numEnemy); } // This code only produces one at a time //for (i=6; i<=numEnemy; i++){ // enemy1.duplicateMovieClip("enemy"+i, i+100); // trace(i); //} I have a game sample to preview to help you visualize. http://www.gmmb.com/client_view/nj/t...2706_buttbugg/ |
|
#4
|
||||
|
||||
|
Re: Flash duplicateMovieClip over time
what atrre oyu using to make the game?
Last Blog Entry: Assassin's Creed (Nov 22nd, 2007)
|
|
#5
|
||||
|
||||
|
Re: Flash duplicateMovieClip over time
good game btw
Last Blog Entry: Assassin's Creed (Nov 22nd, 2007)
|
|
#6
|
|||
|
|||
|
Re: Flash duplicateMovieClip over time
I am using Flash 8
|
|
#7
|
||||
|
||||
|
Re: Flash duplicateMovieClip over time
What are you having probs with as it seems fine to me
Last Blog Entry: Assassin's Creed (Nov 22nd, 2007)
|
|
#8
|
|||
|
|||
|
Re: Flash duplicateMovieClip over time
Yeah, it seems to work ok, I was hoping to have one then two, then four etc. . . But its either all or nothing.
|
|
#9
|
||||
|
||||
|
Re: Flash duplicateMovieClip over time
oh u mean creatures? a variable should do it?
Last Blog Entry: Assassin's Creed (Nov 22nd, 2007)
|
![]() |
| Tags |
| flash, games, programmers |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| getTimer() and duplicateMovieClip() | tox0tes | Flash & Multimedia Forum | 0 | Sep 23rd, 2007 18:56 |
| Flash Designer (Central London, Flash, Flash Games, Flash banners, 22K-28K) | CapitalStrategy | Job Opportunities | 0 | Aug 13th, 2007 09:39 |
| Flash Designer (Central London, Flash, Flash Games, Flash banners, 22K-28K) | CapitalStrategy | Job Opportunities | 0 | Aug 13th, 2007 09:04 |
| Time | benbacardi | JavaScript Forum | 2 | Aug 6th, 2004 19:56 |
| Adjusting time from server time to local time | Tim356 | Classic ASP | 10 | Jun 21st, 2004 14:57 |