Flash duplicateMovieClip over time

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.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Flash & Multimedia Forum

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Jan 5th, 2007, 14:07
Junior Member
Join Date: Sep 2006
Location: reston, virginia
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Jan 5th, 2007, 16:09
Reputable Member
Join Date: Jul 2006
Location: Scotland
Age: 22
Posts: 357
Thanks: 0
Thanked 0 Times in 0 Posts
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Jan 5th, 2007, 16:18
Junior Member
Join Date: Sep 2006
Location: reston, virginia
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
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/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Jan 8th, 2007, 10:34
Daniel's Avatar
Elite Veteran
Join Date: Sep 2006
Location: The Kingdom of Rabbits
Age: 21
Posts: 2,051
Blog Entries: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Flash duplicateMovieClip over time

what atrre oyu using to make the game?
Last Blog Entry: Assassin's Creed (Nov 22nd, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Jan 8th, 2007, 10:35
Daniel's Avatar
Elite Veteran
Join Date: Sep 2006
Location: The Kingdom of Rabbits
Age: 21
Posts: 2,051
Blog Entries: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Flash duplicateMovieClip over time

good game btw
Last Blog Entry: Assassin's Creed (Nov 22nd, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Jan 8th, 2007, 14:29
Junior Member
Join Date: Sep 2006
Location: reston, virginia
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Flash duplicateMovieClip over time

I am using Flash 8
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Jan 9th, 2007, 08:31
Daniel's Avatar
Elite Veteran
Join Date: Sep 2006
Location: The Kingdom of Rabbits
Age: 21
Posts: 2,051
Blog Entries: 12
Thanks: 0
Thanked 0 Times in 0 Posts
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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Jan 9th, 2007, 14:06
Junior Member
Join Date: Sep 2006
Location: reston, virginia
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old Jan 11th, 2007, 08:54
Daniel's Avatar
Elite Veteran
Join Date: Sep 2006
Location: The Kingdom of Rabbits
Age: 21
Posts: 2,051
Blog Entries: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Flash duplicateMovieClip over time

oh u mean creatures? a variable should do it?
Last Blog Entry: Assassin's Creed (Nov 22nd, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
flash, games, programmers

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 23:35.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42