The forums have permanently moved to This forum will be kept around in read-only mode for archival purposes. To learn how to continue using your existing account on the new forums, check out this thread.

Results 1 to 6 of 6

Thread: duplicating and removing enemies

  1. #1

    duplicating and removing enemies

    Ive started this game and got to the point where i need to add the enemies. I got a single enemy that comes on the screen at a random speed and when you click him he dies but i want more than one enemy to come. I also want it so that the enemy gets removed when it is dead. I know I have to use a removemovieclip thing but i just cant do it. Ive attached the file so you can have a look and maybe add some more code. Any help would be gr8
    Attached Files Attached Files

  2. #2
    (I didn't look at the files)

    delete your enemy from screen
    go to the library and export it with the name you want (eg:"enemy")
    then use the following command to put the enemy on stage
    attachMovie("enemy", "enemy"+i++, 1000+i);
    when the enemy die you write
    in the enemy's code
    (I = number)

  3. #3
    before I say anything else yes I am a noob I just cant seem to add the code to anywhere to get it to work. Could someone just add the code for me so I could see where to put it. It would be much easier. Thanks for the help any way and I sort of understand the code it is just where to put it i dont get.

  4. #4


    Please help I am completely stuck.

  5. #5

    Fla Script

    if you don't like the changes i made, go ahead and throw a ton of those red killer balls on me
    and a gun too...

    ps: nice game

    ps2: new smilies!
    Attached Files Attached Files

    "A human can interpret missing logic but a computer can't." - wkt
    "That goes into the 'too bad' box." - TOdorus
    "This is a three year old thread, there's no reason to post here..." - flyingmonkey456
    "Despite beeing the oposite, they look very similar to me." - SparK

  6. #6
    thank you very much. I have made a new enemy and would like it so that less of these enemies come in as the other ones. And Also that when a certain ammount of enemies have come for example 10 swordsmen and 5 archers. to go and play the next frame. Also I would like it so that the enemies have health instead of one hit dead. If you could do this for me it would be a great help. I have attached the new file with the archer on. Thanks again
    Also I would like it so that you cannot kill more than 1 enemy at a time.
    Attached Files Attached Files
    Last edited by sam_vickery; July 21st, 2008 at 01:33 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Home About Meet the Moderators Advertise

 Link to Us


Copyright 1999 - 2012