User Tag List

Results 1 to 7 of 7

Thread: Top-down shoter AI problem

  1. #1
    Clicker Fusion 2.5 (Steam)Android Export Module (Steam)

    Join Date
    Mar 2015
    Location
    Poland
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Top-down shoter AI problem

    Hi,
    I am making top-down shooter zombie game, and I don't know how to make zombies AI :/
    I was wondering about this: http://community.clickteam.com/threads/91019-Tower-Defence-Kit-ALL-PLATFORMS
    but it depends on static objects (mine is eight-direction).

    I just wanna them to see walls and choose shortest way to get to destination (player).

    Any sugestions?
    There is video to show you what I've got:
    https://youtu.be/JI8HKYnpqC8
    Sorry for bad quality :/

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)
    schrodinger's Avatar
    Join Date
    Nov 2014
    Posts
    3,159
    Mentioned
    28 Post(s)
    Tagged
    1 Thread(s)
    If you need them to choose shortest path, you need pathfinding,
    this can be done in fusion (tower defence kit you linked is a superb example)
    but it may be not really straightforward to do if you're new to Fusion.
    Zombies are usually not so clever sure you need it?

    While if you just need them not to be able to "see" past walls,
    you could use a simple line-of-sight approach maybe?

    Like this simple example:

    Overlap_LOS_double.mfa
    (drag and drop A / B - line of sight will be closed by obstacles)

    when line of sight is "closed", zombies can keep doing their business, maybe randomly hanging around (don't see the player)
    when line of sight is "open", they can chase the player (cause they see it)

  3. #3
    Clicker Fusion 2.5 (Steam)Android Export Module (Steam)

    Join Date
    Mar 2015
    Location
    Poland
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It seems legit, but when there is only one enemy

    I don't know how to upload files there, so there is link:
    http://www.filedropper.com/overlaplosdouble

    Obstacle is now drag-and-drop.

    Check what happens, and give me some advises

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)
    schrodinger's Avatar
    Join Date
    Nov 2014
    Posts
    3,159
    Mentioned
    28 Post(s)
    Tagged
    1 Thread(s)
    Yeah you got the point perfectly, cool!

    And yes - you can definitely use this approach with multiple enemies.

    See a little refined example:
    Overlap_LOS_multi.mfa

    (also with backdrop obstacles - the line changing direction is only to highlight whne single los are closed/open)

  5. #5
    Clicker Fusion 2.5 (Steam)Android Export Module (Steam)

    Join Date
    Mar 2015
    Location
    Poland
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You are GENIUS!
    I was wondering how to make AI like this for ages.

    Well, I have got another problem. When I kill "A", the line stays in place. Do you know how to repair it?

    I made simple "launch and object" shooting system (you can shoot only in 12 directions ), just to illustrate problem.
    Attached files Attached files

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)
    schrodinger's Avatar
    Join Date
    Nov 2014
    Posts
    3,159
    Mentioned
    28 Post(s)
    Tagged
    1 Thread(s)
    Glad it was useful!

    I can suggest two methods, both are very short
    implemented & commented in the example below:

    Overlap_LOS_multi_DestroyLine.mfa

    (activate one & inactivate the other to test)

  7. #7
    No Products Registered

    Join Date
    Mar 2017
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It was really useful. However if lets say I want to make a top down zombie game for two player, how will the zombie AI decide which player to chase upon based on the closest distance? How to make the zombie to chase the player without using line of sight while implementing the pathfinding?

Similar Threads

  1. Pulling Problem and Shooting Problem
    By Duggabboo in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 21st March 2010, 05:24 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
  •