R149 Pathfinding in Tilemap bug

0 favourites
  • 6 posts
From the Asset Store
Units do not overlap each other and use different ways if there are several free ways.
  • Link to .capx file (required!):

    https://dl.dropboxusercontent.com/u/65841566/R149PathfindingTileMapBug.capx

    Steps to reproduce:

    1. Add two tilemaps. One as Background one as Collision.

    2. Add solid behavior to the collision tilemap

    3. Add a sprite and add pathfinding behavior.

    4. Add 8 direction movement (for testing) to the player or sprite.

    Observed result:

    When touch or click on screen , the sprite or player didnt move.

    However when I move the player using arrow keys, it works. The collision

    tilemap works as solid and player cant overlap the tiles in Collision tilemap.

    Expected result:

    The sprite or player will move to the Touch.X and Touch.Y

    Browsers affected:

    Chrome: yes

    Firefox: yes

    Internet Explorer: yes

    Operating system & service pack:

    Win8.1

    Construct 2 version:

    R149

  • Thanks, should be fixed in the next build. Note your example file has its own issues not to do with the bug though (e.g. wrong cell size, should have cell border of -1, 8 direction will conflict with Pathfinding movement).

  • Thanks Ashley

    Cant wait for next update. Previous game engine that I worked for have an extensive use of tiled for map editor.

    The tile map features is really going to help me designing my next game.

  • it will be more easy to use a simple A* algorithm on a array than pathfinding plugin no ?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • egos - the pathfinding behavior already uses A*.

  • Thanks for your answer

    yes but for acces to the A* we have to use object and not a simple position in a grid/matrix

    a basic game in 8 directions dont need all the feature of pathfinder plugin

    In the case of tumira you calculate the collision of tilemap for recalculate the A* matrix but you just need to block the coordinates of the tile in the A* its so much simple.

    Its a plugin for real time game but too much cpu consuming into a huge map of a tilemap game.

    Personnaly i use A* plugin of 00rez and unfortunetly its not a good solution but i gain 10x performance

    Ashley if there are a way to acces directly to the A* it will be great

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