R149 Pathfinding in Tilemap bug

Bugs will be moved here once resolved.

Post » Wed Nov 06, 2013 2:13 pm

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
   
B
82
S
23
G
14
Posts: 389
Reputation: 12,504

Post » Thu Nov 07, 2013 5:14 pm

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).
Scirra Founder
B
399
S
236
G
89
Posts: 24,519
Reputation: 195,351

Post » Fri Nov 08, 2013 5:26 am

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.
B
82
S
23
G
14
Posts: 389
Reputation: 12,504

Post » Thu Nov 21, 2013 11:03 pm

it will be more easy to use a simple A* algorithm on a array than pathfinding plugin no ?
B
14
S
3
G
3
Posts: 30
Reputation: 3,435

Post » Fri Nov 22, 2013 1:16 pm

@egos - the pathfinding behavior already uses A*.
Scirra Founder
B
399
S
236
G
89
Posts: 24,519
Reputation: 195,351

Post » Fri Nov 22, 2013 9:55 pm

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
B
14
S
3
G
3
Posts: 30
Reputation: 3,435


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 0 guests