13 lines
260 B
GDScript
13 lines
260 B
GDScript
extends HBoxContainer
|
|
var start_pos: Vector2
|
|
|
|
func _ready() -> void:
|
|
start_pos = self.position
|
|
|
|
func _input(event: InputEvent) -> void:
|
|
if event.is_action_released("left_mouse_click"):
|
|
self.position = Vector2(1000.0,1000.0)
|
|
|
|
func on_state_changed():
|
|
pass
|