I am extending Area2D with my own class (MyArea2D). And in this class I want to track the tile position of the node on my tilemap (tile_pos). To do this I would like to use a set function for the parent member position. In this set function I would not only update position but also the tile_pos, e.g.:
func set_position(new_position):
print("Setting position")
.set_position(new_position)
tile_pos = tilemap.world_to_map(position)
I thought that if I implement this set_position in my class MyArea2D it overrides the set_position funciton in the Area2D. But my set_position is never called. Why is that the case?
Another solution is to set my own setget for the position member in Area2D in my subclass. Is that even possible?