Question
var a := 100
var pos: Vector2:
get:
return Vector2(a, a)
var pressed := false
func _input(event):
if event is InputEventMouseButton:
if event.button_index == MOUSE_BUTTON_LEFT && event.is_pressed():
if pos.x == 100:
pressed = true
Here when I access pos
inside _input it is returning Vector2(0, 0)
rather Vector2(100, 100)
. I have set breakpoint at last if and inspected the value of pos