How do I add custom (non solid) obstacles to pathfinding?

0 favourites
  • 6 posts
From the Asset Store
Kids Game
$49 USD
New Sounds Added Update: 115 new sound effects added for no additional cost!
  • Every single example provided by scirra uses solid obstacles. I tried by using custom non solid obstacles but coundnt make it work. Any working example around? Thanks!

  • It's pretty easy

  • Yeah it should be but this is pretty much what i did and yet I couldnt tell you why its still not working.

    I can easily make it work with any other solid obstacles but once you just change it to custom and of course add the custom pathfinding obstacle for instance on the start of layout it just doesnt work. Im pretty sure its some kind of bug or whatever...

  • Maybe you are trying to change obstacle type when the pathfinding instance is not yet created. Or you might need to regenerate the obstacle map.

    Can you share your project?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Maybe you are trying to change obstacle type when the pathfinding instance is not yet created. Or you might need to regenerate the obstacle map.

    Can you share your project?

    Thank you for your kindness in sharing your time, dop. yeah Im aware of that and was only adding obstacles after creating the pathfinding objects and also regenerating the map whenever was needed. Im not sure, but the issue seems to be related with the fact that all pathfinding instances share the same obstacle map. I could "fix" and make it work by changing their cell borders to different values. Not sure if it is really necessary, but it worked. I will try to make some more advanteced tests to verufy if everything is really working as it supposed to. I will let you know if i find any other unexpected behaviours. Thaks again!

  • Yeah, check out Ashley's response in this topic:

    construct.net/en/forum/construct-3/how-do-i-8/two-objects-pathfinding-not-138879

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)