User Tag List

Results 1 to 2 of 2

Thread: Easy Non synchronized AI?

  1. #1
    Clicker Fusion 2.5

    Join Date
    Dec 2009
    Posts
    110
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Unhappy Easy Non synchronized AI?

    I have a feeling this question has been asked before but ill shoot anyway. A minor but mildly annoying problem I face with the adversaries in my game is that if there are more than one of the same type of enemies in the radius of the player, then their AI seems to act in tandem with each other, attacking at the same time and moving at the same time as well. This may be attributed to the fact that most of their actions are timer based (i.e. every 3 seconds, specific type of enemy moves left or right). Is there a way to make the enemies movements seem more natural and actually give them a mind of their own instead of a "hive mind" if you will?

  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)
    The issue here is the Every 3 Seconds event. You can use a random value for this. To do this you would need to use one of the Enemy's Alterable Values.

    Enemy is within range of Player
    +Altable Value A of Enemy < 1
    >Set Alterable Value A of Enemy to random(4)+2

    Every 1 second
    >Subtract 1 from Alterable Value A of Enemy.

    Alterable Value A of Enemy = 1
    >Attack the Player.
    >Set Alterable Value A of Enemy to 0.
    KnightTrek Productions
    http://www.knighttrek.com

Similar Threads

  1. Little easy help about a mfa example
    By paobrasil in forum Android Export Module Version 2.0
    Replies: 2
    Last Post: 3rd October 2013, 06:55 PM
  2. Easy Grid
    By legocacher in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 26th April 2010, 03:53 AM
  3. Easy Scroll Bar
    By juanjo in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 23rd April 2008, 06:46 AM
  4. MOO Bug? (Should be easy to solve)
    By pinacoladaxb in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 22nd April 2008, 01:36 AM
  5. This must be easy
    By Shmoo in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 19th January 2007, 05:01 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
  •