User Tag List

Page 1 of 5 1 2 3 ... LastLast
Results 1 to 10 of 45

Thread: Enemy AI

  1. #1
    Clicker Multimedia Fusion 2

    Join Date
    Feb 2012
    Posts
    53
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Enemy AI

    Heya,

    I have been following a video tutorial for on enemy AI. Because I cannot post a link essentially the video shows how to make an enemy find the player and then follow them.
    I finished the tutorial but the enemy to retreat to an area once the player has ran away and is out of their sight. I am a complete noob when it comes to MMF2 and I cannot figure out a way to do this. If any one could help me out it would be much appreciated

  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)
    Hi Lucien, and welcome to the forum. Use a small active in the area to be retreated to. Have the enemies always look at that small active if they can't find the player.

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

  3. #3
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleXNA 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)
    gkinfinity's Avatar
    Join Date
    May 2011
    Location
    USA
    Posts
    284
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Basically what marv said, although it might be a bit more complicated than that depending on whether or not there are obstacles between your enemies and the area you want them to retreat to

  4. #4
    Clicker Fusion 2.5 DeveloperiOS Export Module
    ChrisBurrows's Avatar
    Join Date
    May 2011
    Location
    Tasmania, Australia
    Posts
    622
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Is your game side scrolling or top down?

  5. #5
    Clicker Multimedia Fusion 2

    Join Date
    Feb 2012
    Posts
    53
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Chris- It's like the 2D Zeldas.

    Thanks Marv that sounds like the best solution however I am still a bit stuck. I have it so that once the enemy has spotted the player the enemy switches to a different movement and Alterable value A is set to 1.
    My next condition is Always Alterable value A of Enemy = 1 look at player. How do I go about changing this so that when the sight isn't on the player he looks at the active object I have created?

    The way the sight works is the enemy launches loads of objects and once it collides with the player the enemy looks at the player. Thanks a lot.

  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)
    Maybe use a time. If that time has exceeded, change Alt value a to 2.

    Alt value a=2, then look for home.

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

  7. #7
    Clicker Multimedia Fusion 2

    Join Date
    Feb 2012
    Posts
    53
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have it so after a certain amount of time the enemy will return to the area and that works well but I don't know how to have it so that every time he follows the player he will lose interest when his sight isn't colliding with the player. So the timer idea would work but I don't know how to tell MMF that if the collision isn't being made then do something else. Thanks for your help

  8. #8
    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)
    negate the collision then set the "home mode"

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

  9. #9
    Clicker Multimedia Fusion 2

    Join Date
    Feb 2012
    Posts
    53
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hmm won't seem to let me negate collisions

  10. #10
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Make sure you use Overlaps and not Collides.
    Working as fast as I can on Fusion 3

Page 1 of 5 1 2 3 ... LastLast

Similar Threads

  1. 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, 05:29 PM
  2. Enemy
    By Taceo in forum Multimedia Fusion 2 - Technical Support
    Replies: 12
    Last Post: 26th July 2010, 09:47 AM
  3. Enemy Help Please!
    By Gate001 in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 6th June 2010, 01:54 AM
  4. Enemy HP
    By FlinkGigitty in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 22nd January 2010, 08:09 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
  •