drogers18 Posted June 18, 2021 Share Posted June 18, 2021 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 PATHFINDING easystar = new EasyStar.js(); easystar.setGrid(levelData); easystar.setAcceptableTiles([0, 1, 2, 3, 4, 5, 6, 7, 8]); easystar.enableDiagonals(); easystar.disableCornerCutting(); my level is formatted without the use of JSON tilemaps, like so: var level = [[0,0,1,0,0], [1,0,1,0,1], [0,0,9,10,0], [0,0,1,1,0], [0,0,0,0,0]]; is there extra easystar configuration I am missing that should be used when not using a json tilemap setup? pathfindwithtiletype.mkv Link to comment Share on other sites More sharing options...
Recommended Posts