Mxywes's Recent Forum Activity

  • Ok, thanks for your answer, but I cannot work on this right now, so I'll try as soon as possible !

    And again, thanks for your help.

  • I didn't quite understand what you meant, but I'll wait until you have time.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I had an idea for a game concept that I'm creating right now, and... well it doesn't work the way I wanted.

    First, let me explain my idea.

    I have some kind of building simulation game project, and I wondered how I could check that House A is connected by the road to Service A, for example. Before you tell my how you'd have done this, I figured something out but it involves pathfinding, something I'm not familiar with at all. Here is it :

    Here, the grey tiles are roads, H are houses, and W is the service. Two houses should be considered as "connected" to the service tile, and two shouldn't.That's what I wanted to do.

    So, I generate solid objects by the edges of the tiles, and destroy the ones between two roads or between a road and a H or W tile.

    Then, I could find a path between the Houses and the service. But whatever settings for pathfinding I use, the houses keep ignoring the obstacles. I searched everywhere and the documentation about pathfinding is quite hard to find IMO.

    So here I ask for help. I have two questions:

    1. Is it a good idea to check connection between to objects through other objects using the pathfinding behavior?

    2. And more important, why is it not working?

    Here is the download link for the capx file : dropbox.com/s/d6j5k51y3jlsep6/pathfinding_constructforums.capx

    Use the mouse and the H, R and W keys to create Houses, Roads and Wells. I added a "follow path" action for testing purposes, but of course here I'm only interested in the "find path" action.

Mxywes's avatar

Mxywes

Member since 2 Feb, 2016

None one is following Mxywes yet!

Trophy Case

  • 8-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • Email Verified

Progress

10/44
How to earn trophies