How can I write a getter for a node member which is inherited from its parent? When I try to redeclare the member with setget
it complains that the member already exists.
extends Sprite
var position setget set_position ,get_position
gives me the error The member "position" already exist in a parent class
Node2D already has the set_position
method as setter for position
, and I tried to override it in the child, but it doesn't seem to get called when changing the member.