User Tag List

Results 1 to 6 of 6

Thread: How to create Horde mechanics?

  1. #1
    No Products Registered

    Join Date
    May 2015
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to create Horde mechanics?

    Hi everyone, I need help please.

    I've been trying for a good while now to get what I want with no success at all.

    What I want to do is create a random amount of enemies, say between 20 and 50 that appear at the top or side of the screen. Not unlike Space Invaders but with a horde mentality that will charge towards your player character.

    Any help will be GREATLY appreciated. Thanks!

  2. #2
    Clicker Fusion 2.5Fusion 2.5 Mac
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    zip2kx's Avatar
    Join Date
    Jun 2015
    Posts
    845
    Mentioned
    18 Post(s)
    Tagged
    0 Thread(s)
    What part do you have issues with? The creation part or the AI?

  3. #3
    No Products Registered

    Join Date
    May 2015
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi, thanks for the reply.

    Creation.

    I'm banging my head against a wall just trying to work out how to randomly generate say between 20 - 50 enemies (imagine a space invaders block of aliens) that appear either at the top of screen or sides.

    The AI I think I worked out with a single enemy.

    Thanks.

  4. #4
    Clicker Fusion 2.5Fusion 2.5 Mac
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    zip2kx's Avatar
    Join Date
    Jun 2015
    Posts
    845
    Mentioned
    18 Post(s)
    Tagged
    0 Thread(s)
    oh ok.

    This is how i would do it:
    Create a counter (or use a global value, doesnt matter).

    Start of frame
    -Set Counter to random range 20-50

    Then:
    Counter is greater then 0
    -Start Fast Loop "spawn" 1 times.

    On loop "spawn
    -Create Enemy
    -Set Y position to 0 (top of the screen)
    -Set X position Random(Frame Width)
    -Sub 1 from Counter.

    That would in theory create enemies at the top of the screen at random spots until the counter is 0.
    Try and see if that works.

  5. #5
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCHTML5 Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    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)
    chrilley's Avatar
    Join Date
    Jul 2006
    Posts
    1,013
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    I made a small example using fastloops to spawn enemies from all sides of the screen. Note that at the current spawn rate you might hit maximum object count pretty fast so make sure to adjust numbers and conditions for what you need!
    Attached files Attached files

  6. #6
    No Products Registered

    Join Date
    May 2015
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Brilliant, thanks!!

    You're a pair of superstars!! hehe

Similar Threads

  1. Can you store gameplay mechanics globally?
    By Alpha17x in forum Fusion 2.5
    Replies: 7
    Last Post: 29th August 2015, 05:44 PM
  2. How to customise non-physical platforming mechanics?
    By arrjayjee in forum Fusion 2.5
    Replies: 3
    Last Post: 7th November 2014, 12:10 PM
  3. Simple Enemy Create Mechanics.
    By peejaygee in forum Fusion 2.5
    Replies: 2
    Last Post: 8th February 2014, 10:53 PM
  4. Help with creating game mechanics
    By amaire13 in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 4th August 2012, 03:38 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
  •