Hello, I am new to the Godot engine and having trouble understanding how best use the tilemap node to implement a navigation mechanic.
My idea is to make a turn-based tactics style game on a grid and I have managed to make a sprite move over the tilemap avoiding obstacles. I do this by using the A-star class and passing in the id of some tiles go get a movement path. However, I have two problems with this:
1. Given an amount of maximum tiles to move, how can I display what possible moves the sprite can make?
One way I thought of doing this is by taking the path the tiles in the "maximum movement circumference" around the sprite and as the destination for A-star and then cutting the given paths to length of less that maximum movement. This sounds workable but is extremely processing heavy and prefer to avoid it. The A-star documentation gives an estimate cost function that could be used to make a mask but that method is hidden. Is there another way to access it?
2. Right now I am treating the tiles that are not obstacles the same but I would like to give them different weights depending on the tile they are. For example, it should be more difficult to move over snow than over grass. I have seen the A-star documentation show a get method for the weight at a node in the map but no way to set that weight. Is there a way to do this?