Jump to content



Recommended Posts

I have a phaser 3 game I am developing that needs to utilize pathfinding to work. I have a simple iso grid layout, and easystar works, however, it appears to ignore the line where I declare the water tiles the units should ignore: setAcceptableTiles([0, 1, 2, 3, 4, 5, 6, 7, 8]); (my water tiles begin at 9 and up) I have included a short video that shows this...

my easystar config is setup like so:

        var easystar;

        easystar = new EasyStar.js();
        easystar.setAcceptableTiles([0, 1, 2, 3, 4, 5, 6, 7, 8]);


my level is formatted without the use of JSON tilemaps, like so: 

    var level = [[0,0,1,0,0],

is there extra easystar configuration I am missing that should be used when not using a json tilemap setup?


Link to comment
Share on other sites


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...