User Tag List

Results 1 to 10 of 10

Thread: Pathfinding object vs huge map

  1. #1
    Clicker Fusion 2.5 (Steam)

    Join Date
    Sep 2017
    Posts
    13
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Pathfinding object vs huge map

    I have a question about pathfinding object. The problem is that i'm trying to make a game with a really big map (about 64000x48000). Most objects on this map are created and positioned when player gets close to them. So my question is how can i use the pathfinding object in this project to create enemy pathfinding? Is it better to create a huge grid and check for obstacles every certain amount of time or create a grid which is following the player position and covers generated objects and create a new one when player moves for example 512 pixels? I thing that second option may provide better optimization, but i have no idea how can i do something like that. Maybe do you have some ideas? I would be vaery thanful for any suggestion

  2. #2
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCiOS Export ModuleInstall Creator ProPatch Maker
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Oct 2012
    Posts
    217
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    The pathfinding object handles 1 object at time only.You'd be better off checking examples on "enemy chasing player"

  3. #3
    Clicker

    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    May 2015
    Posts
    135
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by SevenSails View Post
    The pathfinding object handles 1 object at time only.You'd be better off checking examples on "enemy chasing player"
    Sort of. The pathfinding object can handle pathfinding for as many objects as you need. You can find a path and store it in the pathfinding object's internal array, and loop though objects and these arrays advancing objects one positions as they need to be, to control as many objects as the engine can handle. I have a game in production that can handle hundreds of objects using dynamic pathfinding (the level is destructible so the path map must be constantly updated) in real time with the pathfinding object.

  4. #4
    Clicker Fusion 2.5 (Steam)

    Join Date
    Sep 2017
    Posts
    13
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I found an example of pathfinding for multiple objects and i works nice, but i still don't know how to apply it to massive map like that, because it gives me milions of cells and computation times would be massive. Is there a way to move pathfinding grid around??

  5. #5
    Clicker

    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    May 2015
    Posts
    135
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)
    You can update the grid start position (normally 0x,0y when there is only one grid needed) and size whenever you want. I've never done it, and if you have any objects still pathing but outside of the new zone, they will break.

  6. #6
    Clicker Fusion 2.5 (Steam)

    Join Date
    Sep 2017
    Posts
    13
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    sounds nice, but how can i change start position? Because i tried to achieve it and don't know how can i check if the position really changed?

  7. #7
    Clicker

    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    May 2015
    Posts
    135
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)
    It's the "Set Zone" action, I believe. You'll need to run whatever events you're using after moving it to generate a new map for that area. Like I said, I've never made a map so large that I would need to do any of this so I can't really get into specifics.

  8. #8
    Clicker Fusion 2.5 (Steam)

    Join Date
    Sep 2017
    Posts
    13
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Is "set zone" setting the position of corners of the map? And how can i get value of position of these corners, because i tried to set counter but it usually stays at 0 no matter what zone i set. Sorry if i ask too much questions, but i've never used pathfinding object before.
    2020-02-14_23h15_32.jpg

  9. #9
    Clicker Fusion 2.5 (Steam)

    Join Date
    Sep 2017
    Posts
    13
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I've done some testing and i achieved movable pathfinding map, however after moving and clearing it any obstacles are not detected anymore and i don't know how to fix it. It's probably problem with only one event but i have no idea what's wrong. Can somebody look at the example and correct it? I would be realy thankful
    Unfinished pathfinding.mfa

  10. #10
    Clicker Fusion 2.5 (Steam)

    Join Date
    Sep 2017
    Posts
    13
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I really need help with this, can someone tell me what's wrong in that example?

Similar Threads

  1. Multiple pathfinding with Pathfinding Object
    By Erkabubben in forum Fusion 2.5
    Replies: 12
    Last Post: 16th July 2017, 08:54 PM
  2. EasyXML object - parsing stupidly huge files
    By JIMJ316 in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 10th June 2012, 11:18 PM
  3. One huge graphic object VS several separeted objec
    By ASD in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 6th August 2011, 05:37 PM
  4. most efficient array object with huge data
    By neat_Kliker2 in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 1st December 2007, 07:37 PM
  5. Huge numbers object
    By Mokhtar in forum Extension Developers Lobby
    Replies: 5
    Last Post: 1st September 2006, 01:17 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
  •