User Tag List

Results 1 to 8 of 8

Thread: Shmup AI

  1. #1
    Clicker Multimedia Fusion 2 DeveloperAndroid Export Module

    Join Date
    May 2010
    Posts
    163
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Shmup AI

    So I'm making a top-down space shooter and I am trying to figure out a good way to put lots of enemies on screen at once that fly around in a semi-organic fashion. I don't want to manually put paths down. I'm thinking that boids will work beautifully for this, but what is the best way to make boids?

    If you have a better idea than boids or manual paths, let me know.

  2. #2
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    mobichan's Avatar
    Join Date
    Oct 2007
    Location
    Buffalo, NY
    Posts
    3,310
    Mentioned
    28 Post(s)
    Tagged
    0 Thread(s)

    Re: Shmup AI

    What exactly is a boid? And in general, you are going to need to control the movements of enemies per type, either through using a path movement, vector movement or a custom movement.

  3. #3
    Clicker Multimedia Fusion 2 DeveloperAndroid Export Module

    Join Date
    May 2010
    Posts
    163
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Shmup AI

    A boid is:
    http://www.red3d.com/cwr/boids/

    It seems easy to program, especially in fusion.

    The reason I really don't want to do a path is because that would require A LOT of paths, because there are so many enemies passing by the frame at any given time, and what if I have a single type coming from multiple directions and moving on different paths? Paths seem to be a very arduous and ineffecient way to do enemies.

    What exactly do you mean by vector and custom movement?


  4. #4
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    mobichan's Avatar
    Join Date
    Oct 2007
    Location
    Buffalo, NY
    Posts
    3,310
    Mentioned
    28 Post(s)
    Tagged
    0 Thread(s)

    Re: Shmup AI

    Sorry, boids seems a bit over my head. But I would kind of assume they will be a bit out of your reach in MMF2 if you have to ask what vector and custom movements are.

    And to clarify, vector movement is one of MMF's built in movement types that simply moves objects in a direction at a constant speed with gravity. A custom movement is one you make yourself that controls an object's position based on math equations and code.

    Anyone else know how he might handle boids?

  5. #5
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Shmup AI

    It requires complex interactions between duplicates of the same object, something MMF2 is notoriously bad at...

  6. #6
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Shmup AI

    I think this post should be in this thread too.

  7. #7
    No Products Registered

    Join Date
    Aug 2010
    Posts
    343
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Shmup AI

    I just had a quick look at the boid link and it reminded me of Nivrams "basictowerdefenceexample" in as much as it detects multiple object proximity. I used a version of it to do a variety of proximity related responses.

    Just a thought

  8. #8
    Clicker Multimedia Fusion 2 DeveloperAndroid Export Module

    Join Date
    May 2010
    Posts
    163
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Shmup AI

    Quote Originally Posted by Dynasoft
    It requires complex interactions between duplicates of the same object, something MMF2 is notoriously bad at...
    Yeah, I ran into this issue a while back for a grappling hook system I was working on. I just had a look at the example vector movement file, and the "follow the leader" example is pretty close to what I was looking for.

Posting Permissions

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