User Tag List

Results 1 to 6 of 6

Thread: I am having enemy ai issues.

  1. #1
    Clicker Fusion 2.5Android Export ModuleiOS Export ModuleSWF Export Module
    leightonw87's Avatar
    Join Date
    Jan 2012
    Posts
    85
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question I am having enemy ai issues.

    Hi guys, having an issue with a basic enemy, when I got one green slime thing it acts ok if abit finiky, but as soon as I add anymore of the same object they stop moving.

    Does anyone have an suggestions?

    Link below to MFA:
    https://www.dropbox.com/s/nom16gu7xi...mebug.mfa?dl=0

    I'm mainly using behaviors.

  2. #2
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Francois's Avatar
    Join Date
    Jul 2006
    Location
    Montpellier, France
    Posts
    6,920
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    OK, I cannot understand you program completely (with behaviors it makes it difficult as well).
    I think you have to use Fast loops to solve your problem. You see, when you have a condition like
    "Direction of BLOB = 1"
    and when there is more than one Blob, gets confused.
    I suggest you make sure that Fusion explores each and every Blob one after the other in all your behaviors by doing :
    * Always
    - Start fast loop for each on of the "Blob", loop name "Test)
    * On each one of "Blob", loop name "Test"
    ... do any condition you want, you are sure now to test each one of the Blos after the other.
    You can of course, have several events that start with "On each one"...

    If any one gets more ideas...

  3. #3
    Clicker Fusion 2.5Android Export ModuleiOS Export ModuleSWF Export Module
    leightonw87's Avatar
    Join Date
    Jan 2012
    Posts
    85
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Instead of having lots of the same blob, I just cloned them and made them thier own object.

    Seems to work fine once I do that.

  4. #4
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export Module
    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)
    DaveC's Avatar
    Join Date
    Jun 2007
    Location
    Perth, Australia
    Posts
    2,120
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)
    that will work but it's generally considered bad practice.. certainly much less efficient and can become a huge pain if you want to make changes to the AI later. But if it works the way you need it to.. why not.

  5. #5
    Clicker Fusion 2.5 Developer
    PBarwick's Avatar
    Join Date
    Jul 2014
    Posts
    390
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    As Dave says, it's considered bad practice as it's not too efficient to do it that way if you want your game to be more extensible. For example, having variable amounts of enemies; would you like to have to copy all the code over and over if you wanted 1000 enemies?

    I'd very much recommend reading the articles on this website for an introduction to fast loops and other subjects:

    http://www.diybandits.com.au/MMF/articles.html

    Also, I'd recommend looking into using the built in 'for each' loops as Francois suggests; they are very powerful and useful.

  6. #6
    Clickteam Clickteam
    Danny's Avatar
    Join Date
    Aug 2007
    Location
    United Kingdom
    Posts
    3,010
    Mentioned
    21 Post(s)
    Tagged
    2 Thread(s)
    Want to learn Clickteam Fusion 2.5?




Similar Threads

  1. Replies: 5
    Last Post: 4th October 2014, 05:43 PM
  2. following Enemy
    By Droggelbecher in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 24th July 2012, 12:06 AM
  3. Strange thing: If Enemy Alterable Value A = Enemy Alterable Value B
    By King_Cool in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 26th March 2012, 06:29 PM
  4. Enemy Help Please!
    By Gate001 in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 6th June 2010, 02:54 AM
  5. Enemy 'destroy' issues
    By K12Student in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 15th May 2010, 01:40 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
  •