User Tag List

Results 1 to 4 of 4

Thread: Using counter for random spawn, but it's making multiple items spawn instead

  1. #1
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jan 2016
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Using counter for random spawn, but it's making multiple items spawn instead

    First, a million thanks to the wonderful people in these forums who have helped me get as far as I have (especially DaveC whose sample 'pizza' game helped me nail down the random spawn structure in general).

    I have the bare-bones structure of a game, fairly simple - the goal for the part I'm working on specifically is that there's a countdown timer from 30 to 0, and when it hits 0, it spawns a new enemy at a random point at the bottom of the screen (oh, and a randomized enemy at that, because I'm a glutton for punishment). I managed to get it correctly set up to randomize the enemy and spawn point. The counter is set to start at 30 and reduce by one every second, and when it hits zero, it resets to 30 and starts again. The goal is that the reset to 30 is also the trigger for the enemy to spawn, and I have that part working... except that it spawns several enemies at once instead of only one. If I change it so the event is based on the game timer (to spawn an enemy every thirty seconds), it works just fine, but when it's based on the counter showing 30, it spawns multiple enemies at once - something like 2-3 dozen??? It's insane.

    Any ideas on what's going wrong here? Any suggestions on how to fix it?

    Thank you!!!
    (I've attached my work so far in case anyone wants to check it out.)



    MemSlashtest.mfa

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleFirefly 3D Module
    aenever's Avatar
    Join Date
    Jun 2013
    Posts
    1,523
    Mentioned
    28 Post(s)
    Tagged
    0 Thread(s)
    In line 8 add Special condition (by right clicking line 8, select the [the Cog icon] in the event list editor), choose Limit conditions, and select 'Only one action when event loops'.

    Capture.PNG

    Cheers
    Images attachées Images attachées

  3. #3
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jan 2016
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Look at you being all clever and stuff.

    Thank you!!!

  4. #4
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleFirefly 3D Module
    aenever's Avatar
    Join Date
    Jun 2013
    Posts
    1,523
    Mentioned
    28 Post(s)
    Tagged
    0 Thread(s)
    My pleasure glad I could help.

Similar Threads

  1. Random Active Spawn in Random Location in Frame
    By Top_of_the_Temple in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 20th October 2016, 04:33 AM
  2. Spawn Random Objects From The Botton
    By Legengerry in forum Fusion 2.5
    Replies: 4
    Last Post: 23rd March 2014, 08:04 PM
  3. How to spawn random enemys?
    By UnicornMan in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 9th September 2013, 04:54 AM
  4. Question for a random spawn!
    By pyromane in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 10th September 2009, 05:15 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
  •