I'm stupid. I made a tilemap that's an actual map with roads. Added an Area2D node to as a child for 'the player' to move around the tilemap. (The tilemap is huge btw)
I need to know the tiles the 'player' is currently on and potential tiles they can move to. So how can I access TileMap functions like getcellsource_id(0,Vector2i(xx,yy)) from within the Area2d node?
Feel free to ignore: I don't understand instancing or making classes. Used to Pascal, all units can access all others as long as the particular unit was declared in the 'Uses' clause at the start of the current unit. If that helps. In this case I'd declare Uses Area2d, TileMap. Then in the unit assign the tilemap to the Tilemap and could use both units functions at the same time.