Pathfinding issue on mobile. (Freeze)

Bugs will be moved here once resolved.

Post » Tue Apr 15, 2014 5:13 pm

Problem Description
I'm using pathfinding behaviour it works fine on laptop and desktop but not on mobile. each time I spawn a new object and make it adding obstacle, generating map, finding path and moving along it the game freeze.
thx for the help in advance :)

Attach a Capx

Description of Capx
A blue object spawn a new green object with a Pathfinding behaviour.
On created this green object will add pathfinding obstacle then generate the map then find path and finally on path found it will move along path.

Steps to Reproduce Bug
  • run the project on mobile
  • just wait few seconds

Observed Result
____ each time a new object is spawn the game will freeze for a short moment ____

Expected Result
____ it should work smoothly ____

Affected Browsers
  • Chrome: (YES)
  • Safari: (YES)

Operating System and Service Pack
Android 4.4.2 on Google Nexus 4
Safari and Chrome iOs 7.0 on iPhone 4S

Construct 2 Version ID
____ 163 (64-bit) ____
You do not have the required permissions to view the files attached to this post.
Posts: 9
Reputation: 343

Post » Tue Apr 15, 2014 7:06 pm

Closing as not a bug.

Read the manual entry:

First of all a cell size of 0 is not valid, so it uses the smallest valid value. This causes an incredibly extreme CPU workload for pathfinding, since it is a long and complicated process to determine a path. Use a sensible cell size.
Scirra Founder
Posts: 25,207
Reputation: 200,355

Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 0 guests