User Tag List

Results 1 to 8 of 8

Thread: Enemy spawning help.

  1. #1
    Clicker Multimedia Fusion 2

    Join Date
    Oct 2009
    Posts
    53
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Enemy spawning help.

    Okay, so I have several working enemies and several working spawners as well. The way I have now works just fine, Spawner A will only create Enemy A, Spawner B will only create Enemy B. Fine and dandy, but my issue is, I would have to create another event for each new enemy I add.

    I am looking for a way to streamline this. I'm trying to figure out if there's a way I could spawn enemies through their alterable value, or something similar.
    For example, a Spawner with Alt Value A=1 would ONLY spawn enemies with the same value. Not sure if I'm explaining this right, anyone have suggestions?

  2. #2
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    Re: Enemy spawning help.

    Maybe spread value on your spawners and enemies, then run a fast loop.

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  3. #3
    Clicker Multimedia Fusion 2

    Join Date
    Oct 2009
    Posts
    53
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Enemy spawning help.

    Can you give me an example? I can't seem to work it out in my head.

  4. #4
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    Re: Enemy spawning help.

    In your "On loop" events, add the condition "Enemy alterable value (whichever you selected to spread the value in) = LoopIndex("nameOfLoop"). This will select one specific enemy object on each loop - run the loop NObjects("Enemy") times to run it once for each of them.

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  5. #5
    Clicker Multimedia Fusion 2

    Join Date
    Oct 2009
    Posts
    53
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Enemy spawning help.

    I haven't tried it yet, but wouldn't that only work for one enemy object? If I were to use a completely different enemy object, I would need another similar event, wouldn't I?

    That's pretty much what I have already, I'm trying to avoid that.

  6. #6
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    Re: Enemy spawning help.

    No, this is based on cloned enemies and every loop it would pick a different enemy. There is a fast loop tutorial on the ---> sidebar, under tutorials.

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  7. #7
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    Re: Enemy spawning help.

    GameDragon, disregard what I said...I am full of doo-doo with the formula.

    Sorry

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  8. #8
    Clicker Multimedia Fusion 2

    Join Date
    Oct 2009
    Posts
    53
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Enemy spawning help.

    Haha, it's fine.

    I noticed it's not possible to create objects by qualifier, which is the only thing making this confusing.

Similar Threads

  1. spawning offscreen
    By life2searching in forum Multimedia Fusion 2 - Technical Support
    Replies: 10
    Last Post: 18th May 2012, 08:56 AM
  2. Random spawning example
    By happygreenfrog in forum File Archive
    Replies: 3
    Last Post: 6th May 2012, 03:03 PM
  3. spawning problem
    By tailsko in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 31st August 2011, 10:56 PM
  4. 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
  5. Randomised auto spawning and AI
    By stuckboy in forum File Archive
    Replies: 7
    Last Post: 14th September 2006, 12:58 AM

Posting Permissions

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