User Tag List

Results 1 to 8 of 8

Thread: Question about path finding with nodes

  1. #1
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jan 2010
    Posts
    164
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question about path finding with nodes

    I am trying to make an AI for an 8-directional game, and I was wondering if anyone has a good solution to how you make enemies use paths (preferable multiple paths)? What I mean is, I place active object nodes at corners, splits and basically wherever the AI needs to make a decision (like the AI in Unreal Tournament).

    I can do this with one enemy running around using paths, but when I add more enemies, they seem to confuse each other. I also have a line that is drawn from each enemy to the player to check if there are walls between them. Anyways, I have tried different extensions, but I really don't like them and the examples are very advanced. I have also tried using the advanced direction object, and it works very well for calculating the distance between one enemy and different nodes, but when I add more enemies, it seems like the extension doesn't have what it takes anymore.

    In short terms: What I would like is relatively simple AI using a bouncing movement or something similar, that walks from point to point (preferably with a bit of randomization to it so that they don't always walk in a straight line), and I am seeking advice on how to make it

  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)
    The Advanced Path Movement object can make an object move along nodes to the node closest to an X,Y location
    Working as fast as I can on Fusion 3

  3. #3
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jan 2010
    Posts
    164
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Okay, thanks. I will check it out. Can it also make the enemy follow the player whenever it sees the player too?

  4. #4
    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)
    No, lol, why would that kind of behavior be part of an extension with the name "Advanced Path Movement"?
    Working as fast as I can on Fusion 3

  5. #5
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jan 2010
    Posts
    164
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I've looked very quickly at the examples of the advanced path movement object, and it only seems it works with one object at a time. If you have multiple enemies, you can't do the action "set object to...". Do you think this can be done maybe with a loop or something?

    As for the previous post, I explained wrong, but I figured it wasn't so hard to do :P

  6. #6
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jan 2010
    Posts
    164
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have made progress without using extensions. However, I was wondering if someone could take a look at this MFA file, and see if they can fix a problem for me. It is probably not very hard to fix for the pro's, but I am not insanely good at MMF2 :P
    What happens, is that whenever I add more than one enemy, they seem to mix up where to go. I use a bouncing movement and set nodes around that the enemies follow. Look at the mfa file for more info. The events themselves are made so that it should support multiple enemies, there is just a problem with one condition that I can't figure out.

    Everything is commented and explained, and shouldn't be too hard to understand for most people, so it would be very nice if someone could take a look!
    Attached files Attached files

  7. #7
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jan 2010
    Posts
    164
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I manually removed the condition that told the enemies to collide with each other, because it wasn't needed for testing. This isn't really the issue. The issue is that the enemies can't find the way to the correct node on the path when there is more than one enemy. They only seem to want to go to a node whenever both enemies have the same node targeted.

  8. #8
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jan 2010
    Posts
    164
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Guess nobody can help me then :/ bah, back to the old drawing board :P

Similar Threads

  1. Path Finding
    By AnD4D in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 8th May 2012, 04:47 PM
  2. Path movement - named nodes problem (bug?)
    By n89 in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 25th November 2008, 06:36 AM
  3. How do i use the path finding extension?
    By Oreo in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 13th October 2008, 12:52 AM
  4. Help on Path Finding Objects and Extensions
    By Iwantmyrpg in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 13th June 2008, 04:00 PM
  5. PATH FINDING
    By imothep85 in forum Extension Developers Lobby
    Replies: 4
    Last Post: 10th February 2007, 02:02 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
  •