Tractor beam

This commit is contained in:
Altaezio
2026-06-14 12:21:31 +02:00
parent 940b3c1553
commit 91855b5b43
8 changed files with 168 additions and 63 deletions

View File

@@ -55,13 +55,14 @@ func appear(with_falling_animation = true):
%AnimationPlayer.play("float")
func _input(_event) -> void:
if Input.is_action_pressed("change_item_left"):
data.inventory.change_current_item(1)
if Input.is_action_pressed("change_item_right"):
data.inventory.change_current_item(-1)
for i in range(1, 10):
if Input.is_action_pressed("item_" + str(i)):
data.inventory.set_current_item(i - 1)
if not Pointer.dragging_inspected:
if Input.is_action_pressed("change_item_left"):
data.inventory.change_current_item(1)
if Input.is_action_pressed("change_item_right"):
data.inventory.change_current_item(-1)
for i in range(1, 10):
if Input.is_action_pressed("item_" + str(i)):
data.inventory.set_current_item(i - 1)
# Méthode déclenchée par la classe region
func _start_pass_day():