pathfinding long distances bug

Bugs will be moved here once resolved.

Post » Wed Jul 23, 2014 11:12 pm

Problem Description
when I try to calculate a long distance, the pathfinder does not respond, or pathfinder trace an incorrect path

example number one
pathfinding bug.gif


example number two, the path finder does not respond on my main project

Image

https://dl.dropboxusercontent.com/u/13512632/pathfinding%20bug2.gif

Attach a Capx
____ Upload a Capx to this post ____
pathfinding_bug_update.capx


Description of Capx
this is a example of the capx problem
this is the capx of the first case

Steps to Reproduce Bug
  • click to anywhere
  • and watch the bug.

Observed Result
____ the pathfinder does not respond, or pathfinder trace an incorrect path____

Expected Result

first example

____ the sprite go to the x ____

second example

in this second example on my main project. the expected result is the indicator trace a similar path like this image
bug_example 2.jpg


Affected Browsers
  • Chrome: (YES)
  • FireFox: (YES)
  • Internet Explorer: (YES

Operating System and Service Pack
____ win 7 service pack 1 64bits ____

Construct 2 Version ID
____ release 173____
You do not have the required permissions to view the files attached to this post.
Last edited by ffman22 on Thu Jul 24, 2014 5:43 pm, edited 1 time in total.
Carlo Andrei Mercado

Animator, illustrator, concept artist, special effects for games.

[email protected]

http://f-fman.wix.com/portfolio-ffman22

http://ffman22.deviantart.com/



tutorials:



https://www.scirra.com/tutorials/950/dynamic-mini-map dynamic-mini-map tutorial



https://www.scirra.com/tutorials/9479/p ... ing-damage falling damage platform tutorial



originally published by ffman22
B
62
S
19
G
4
Posts: 341
Reputation: 6,610

Post » Thu Jul 24, 2014 4:32 pm

Closing as not a bug. In your attached .capx the touch positions do not line up with the layers, because you change the layer scale and use Touch.X and Touch.Y without a layer param. If you use the expressions which specify a layer e.g. Touch.X(0) or Touch.X("Game") it lines up and works OK.
Scirra Founder
B
403
S
238
G
89
Posts: 24,654
Reputation: 196,155

Post » Thu Jul 24, 2014 5:46 pm

Ashley wrote:Closing as not a bug. In your attached .capx the touch positions do not line up with the layers, because you change the layer scale and use Touch.X and Touch.Y without a layer param. If you use the expressions which specify a layer e.g. Touch.X(0) or Touch.X("Game") it lines up and works OK.

@Ashley sorry for that mistake, I update the project, but now i use the X.posx ando X.posy when we click on the map and the same bug persist; i did this because in my project I use specific pos of the objects place in the map, the strange is that the bug happen only some times no all the times
look at the example 2, I try to trace the route to the office of other building, but the sprite stuck in the route, the posicion that i used are a office´s doors positions.
this is how to work the code of this example
https://www.scirra.com/forum/download/file.php?mode=view&id=4023
code_example.jpg

Image
https://dl.dropboxusercontent.com/u/13512632/pathfinding%20bug2.gif
You do not have the required permissions to view the files attached to this post.
Carlo Andrei Mercado

Animator, illustrator, concept artist, special effects for games.

[email protected]

http://f-fman.wix.com/portfolio-ffman22

http://ffman22.deviantart.com/



tutorials:



https://www.scirra.com/tutorials/950/dynamic-mini-map dynamic-mini-map tutorial



https://www.scirra.com/tutorials/9479/p ... ing-damage falling damage platform tutorial



originally published by ffman22
B
62
S
19
G
4
Posts: 341
Reputation: 6,610

Post » Tue Aug 05, 2014 5:54 pm

Closing as not a bug. Your updated example appears to work correctly. Given the absolutely extraordinary size of the layout, it takes 10-15 seconds for my high-end desktop machine to trace a path. Once it's found the path though, it is calculated correctly and goes to the right place. I'm afraid your gif images of a project I am not familiar with are not much help; from the evidence I see here it is working correctly, just very slowly, due to the extreme scale of the layout.
Scirra Founder
B
403
S
238
G
89
Posts: 24,654
Reputation: 196,155


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 4 guests