0 Favourites

Pathfinding issue on mobile. (Freeze)

  • Problem Description

    Hello,

    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

    [attachment=0:2ys9njdf][/attachment:2ys9njdf]

    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) ____

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • Closing as not a bug.

    Read the manual entry: https://www.scirra.com/manual/154/pathfinding

    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.

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