Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | laedo |
I am having issues coming up with an id system that can work with negative positions in a TileMap, so something like (-1, -1).
This is how it looks like right now and I’m wondering what my options are.
Generally, how would you make AStar work with negative values? I’m hitting a wall since p_id in AStar only accepts values >= 0.
func calculate_point_index(point):
return point.x + map_size.x * point.y