|
-
Flash Incompetent
Time Delay...
So I have a code that creates enemies which looks like the following:
Code:
function loadSet(Num){
for (i=1; i<=_root["Set"+Num].numEnemy; i++) {
enemyOnScreen+=1;
var tmp = enemy.duplicateMovieClip("enemy"+i, i*100);
when the first frame loads there is a line of code that calls loadSet. My problem is that I don't want all the enemies to be created at once, I want there to be a pause between their creation. I am kind of inexperienced with the getTimer() function, although i did try to play around with it some, I was unable to come to any successful conclusions. Hope I provided enough info... if I didnt, just tell me what is needed... Thanks a lot in advance!
ChaseNYC
p.s. the code goes on for a while just so you know, the loadSet function then calls another function to poosition the enemy properly and then continues to go on telling the enemy what to do, not sure if this info is necessary but thought it might be helpful.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|