User Tag List

Page 1 of 4 1 2 3 ... LastLast
Results 1 to 10 of 31

Thread: AI Help

  1. #1
    No Products Registered

    Join Date
    Jul 2010
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    AI Help

    Hey thanks for reading this! I have a top down shooter where the enemy goes and finds you and when it does it chases you down. I know how to use AI by shooting a bunch of invisible objects that when hit the player tells the enemy to chase the player. Is there any other way without using a lot of objects?

  2. #2
    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)

    Re: AI Help

    Maybe you want pathfinding and line of sight? All you have to do is make the enemy go to the last place it saw the player, and then after that either attack the player or wander around looking for them.
    Working as fast as I can on Fusion 3

  3. #3
    No Products Registered

    Join Date
    Jul 2010
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: AI Help

    How do you do that?

  4. #4
    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)

    Re: AI Help

    Hi LBPO8. I have a node example on my website that may help you with your first post..

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

  5. #5
    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)

    Re: AI Help

    Do what? Line of sight, or pathfinding? LOS you have to make your own method based on the way your gameplay is, but pathfinding is pretty easily done if you use one of the 3 extensions for it.
    Working as fast as I can on Fusion 3

  6. #6
    No Products Registered

    Join Date
    Jul 2010
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: AI Help

    I know, but do you have an example of the way you do it?

  7. #7
    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)

    Re: AI Help

    @OldLongDragon: Most extensions, and the one I am referring to, are free and easy to understand and use. Like opening a jar of jelly, you know how to do it and how to use whats inside.


    @LBP08: There's no 'way I do it', I just know how to if I need to. Anyway, what part do you not understand? The LOS or the Pathfinding?
    Working as fast as I can on Fusion 3

  8. #8
    No Products Registered

    Join Date
    Jul 2010
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: AI Help

    The node example was good, but not what I'd like. What I'm using now is that it looks for you by shooting objects when the object hits you it chases you, but you can hide behind walls and the enemy will walk right past. The downside of what I'm using is that there are too many objects shooting. I'd like the same thing without there being to many objects.

  9. #9
    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)

    Re: AI Help

    OK, so really you can just make the enemy a sort of bouncing ball, and they just walk around randomly. Then when they see the player, you set their direction to the player.

    To determine if the enemy has LOS of the player you can use a scaled and rotated line that you stretch between the enemy and the player and check for no obstacle overlap.
    Working as fast as I can on Fusion 3

  10. #10
    No Products Registered

    Join Date
    Jul 2010
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: AI Help

    Is LOS an extension? If so I can't find it to download. If so again then I have been misunderstanding you. :whistle:

Page 1 of 4 1 2 3 ... LastLast

Posting Permissions

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