User Tag List

Results 1 to 2 of 2

Thread: Need help with simple AI system

  1. #1
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    Outcast's Avatar
    Join Date
    Jan 2011
    Location
    Sweden
    Posts
    3,237
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)

    Need help with simple AI system

    I need a somewhat simple AI for my enemies, they will spawn at random location at left, go to the right, but change directon if certain things "catch their attention" or get close enough, if that happens they will walk toward that object instead. If that object dissapears or goes out of range they should resume their walk to the right part of the screen. Any ideas on how to do this?

  2. #2
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Paul_Boland's Avatar
    Join Date
    Jun 2006
    Location
    Waterford, Ireland.
    Posts
    2,739
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Need help with simple AI system

    You have to set up Actions and Events for all these posibilities. Since each object has its own Alterable Values, you can use these to perform calculations based on each individual enemy.

    Respawning on the left should be easy enough to do.

    They move right but change direction is certain things catch their attention... Well, you would need to code for these certain things. Once one of them affects an enemy, change its direction.

    What you could do is use Alterable Value A for direction control. If 0, the enemy moves right. If something catches the enemies attention, set Alterable Value A to 1, 2, 3, whatever. When set to this value, it moves to the object in question. If the object is destroyed, return the Alterable Value A to 0 and the enemy will move right again.
    KnightTrek Productions
    http://www.knighttrek.com

Similar Threads

  1. Implementing simple D&D e3.5 system
    By MTpitre in forum The Games Factory 2 - Technical Support
    Replies: 2
    Last Post: 10th February 2012, 11:38 PM
  2. Simple RPG HP System
    By Atom in forum File Archive
    Replies: 0
    Last Post: 8th October 2009, 12:25 PM
  3. Simple Moo example
    By Looki in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 30th October 2006, 01:49 PM
  4. Simple Inventory system using List Boxes
    By Sarah in forum File Archive
    Replies: 11
    Last Post: 20th July 2006, 03:55 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
  •