Thx. But this doesnt work with tilemap, but with separate tiles as frames of an animation.
In this example you can find a path. That's ok, most of the plugins, behaviors, scripts I've found do this.
All I want, is to get this grid, around the hero with all possible moves, at low cost. I've done something with easyStar.js. But I have to find all the paths possible and to use an array to save which tiles I've used already, saving "tileX, tileY" as a string then checking tokenat(array.curValue,0) AND tokenat(array.curValue,1) to check if the tiles has already been colored.. and it takes like 0.5 sec to appear on screen, on a PC... Very slow... I just wanted to set a boolean on the tile ( is it possible on a tilemap??) to check if it has been colored... or something like that..
Should I use the plugin board/square_Tx of rex?
Just to be clear : I don't need a path to all possible movement destinations, just a yes/no answer on whether an agent can get there. I will compute a path later once the player picks a highlighted tile.
Any ideas?