Pathfind: Regenerating Obstacles on large layouts.

0 favourites
  • 7 posts
  • The title is pretty self-explanatory. I want to know if there's a way to regenerate pathfinding obstacles on a big layout(3600, 2660) without experiencing one of those little "hiccups". This is pretty important as in the game I'm developing it's possible to destroy certain obstacles that are obstructing the player's way. But I can't have the player seeing its game freeze for less than a second every time the player destroy an obstacle.

    Thanks for your attention.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • By the way, I've already tried to solve it using Line of Sight, but it didn't work for the game.

  • Anyone?

  • As far as I know its not possible. In my experience when using the path finding behavior, you really have to take it into account when designing your game. Its current state is unfortunately very weak, and any concept that requires to much use of this behavior, can vey easily ruin the whole idea, simply because you get these "time stops" every time you have to update the obstacle map.

    Think your best solution is to make one yourself, which is probably not easy, or hope that they improve this behavior. Or simply redesign the concept of your project so you don't have to update the obstacles more than once, reduce number of enemies etc.

  • It's on the to do list to make it so a user defined area can be updated on the obstacle map instead of the whole thing, which will fix the problem. No ETA, though.

  • That's really good news, Thumbs up for all your hard work, very appreciated <img src="smileys/smiley20.gif" border="0" align="middle" />

  • I might be misinterpreting your statement, but I should be clear, I'm just a moderator, I'm not a scirra employee, I don't work on c2 itself, I just work with it. Thank Ashley and Tom instead. :)

    Unless your thanking me for helping around the forum, in which case you're welcome. :)

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