Tilemaps and pathfinding

0 favourites
  • 1 posts
From the Asset Store
Units do not overlap each other and use different ways if there are several free ways.
  • So im playing a bit around with tilemaps and path finding, but cant seem to get it to Work correctly.

    I have two tilemaps. 1 tilemap just contain the Graphics, and the 2nd one i use as an obstacle map.

    So when a graphic is placed on the graphic map that needs to block movement i update the same tile on the obstacle map.

    However after i have updated the obstacle map for the unit with path finding it get stuck. Some times it can move two times.

    I have tried to lower the cell size to 1 (which is pretty extreme) but still it get stuck.

    I have also tried to reduce the size of the collision mesh on the obstacle map. That doesnt help either.

    Anyone had any success using these two things together? And if so have any suggestions what im doing wrong?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)