extends TextureButton # Called when the node enters the scene tree for the first time. func _ready(): #position.x = 500 pass # Replace with function body. # Called every frame. 'delta' is the elapsed time since the previous frame. func _process(delta): pass func _on_mouse_entered(): var tween = get_tree().create_tween() tween.tween_property(self, "position:x", 64, 0.5) func _on_mouse_exited(): var tween = get_tree().create_tween() tween.tween_property(self, "position:x", 0, 0.5)