User Tag List

Results 1 to 7 of 7

Thread: I need help with enemy spawning and timers

  1. #1
    Clicker Fusion 2.5 (Steam)

    Join Date
    Sep 2018
    Posts
    50
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    I need help with enemy spawning and timers

    Hello, I'm working on my first game and I want to make it an enemy wave survival, but I just got stuck in the part where I make the enemies spawn at the beginning of each wave, and I couldn't find anything that could help me on the internet so I created an account to ask you guys.

    I need to know how to make a fixed amount of enemies spawn at the same time in the same or different locations when the timer goes to 0, and then make the game to wait until the player has defeated them all, and then the timer would reset and when it reaches 0 more enemies than before will spawn, and so on and so forth.

    What happens to me is that when the timer reaches 0 the enemies start to spawn infinitely until the max object limit has been reached, and I'm left with 900+ enemies chasing me.

    If you know how to fix this issue please answer.

    Thank you!

  2. #2
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)
    coler123's Avatar
    Join Date
    Sep 2014
    Location
    Milky Way
    Posts
    52
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    you can limit the amount of enemies created by doing something like this

    >if timer = 0
    >amount of enemies < "desired_amount"
    -create enemy

    then you can do something like
    > if timer = 0
    >count enemies >= "desired_amount"
    -reset timer and add +1 to the "desired_amount" or whatever extra amount you want for the next wave.

    theres many others ways to do it, let me know if this one works for you

  3. #3
    Clicker Fusion 2.5 (Steam)

    Join Date
    Sep 2018
    Posts
    50
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you, I had guessed it would be something by that style.

    But I still don't know how to actually program it :P

    Could you please show me how to do it?

  4. #4
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export Module
    Janette5's Avatar
    Join Date
    Dec 2014
    Location
    Western Cape, SA
    Posts
    1,159
    Mentioned
    199 Post(s)
    Tagged
    0 Thread(s)
    There are a variety ways of doing this - attached is 1 example.
    Attached files Attached files

  5. #5
    Clicker Fusion 2.5 (Steam)

    Join Date
    Sep 2018
    Posts
    50
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you!

    It really did work for me.

    But how do I make it so that the quantity of enemies goes increasing for each wave without the previous restrictions stopping them from spawning?

    Thank you, I will be trying to find a solution too.

  6. #6
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export Module
    Janette5's Avatar
    Join Date
    Dec 2014
    Location
    Western Cape, SA
    Posts
    1,159
    Mentioned
    199 Post(s)
    Tagged
    0 Thread(s)
    With a calculation - see attachment.
    Attached files Attached files

  7. #7
    Clicker Fusion 2.5 (Steam)

    Join Date
    Sep 2018
    Posts
    50
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you very much!!

Similar Threads

  1. Need help with creating/spawning more of the same enemy
    By Leyonkungen in forum Developer Services
    Replies: 1
    Last Post: 7th December 2016, 09:40 PM
  2. Timers..
    By Jibs in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 1st November 2011, 06:02 AM
  3. Multiple timers ?
    By Orelbe in forum SWF/Flash Export Module Version 2.0
    Replies: 2
    Last Post: 13th August 2011, 10:24 PM
  4. Enemy spawning help.
    By GameDragon in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 28th January 2010, 03:12 AM
  5. Enemy placements and spawning in a shooter?
    By CKX in forum Multimedia Fusion 2 - Technical Support
    Replies: 15
    Last Post: 19th February 2009, 02:39 PM

Posting Permissions

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