fix: fix the issue with overriding the timer signal function;
This commit is contained in:
@@ -11,13 +11,13 @@ func _ready() -> void:
|
||||
func _process(delta: float) -> void:
|
||||
if Input.is_action_just_pressed("Interact") and can_interact:
|
||||
if !is_open:
|
||||
$Timer.start()
|
||||
$AudioStreamPlayer.play()
|
||||
$AnimatedSprite2D.play("open")
|
||||
print("found sprite num: ", scroll_number)
|
||||
scrolls[scroll_number].visible = true
|
||||
$Timer.start()
|
||||
is_open = true
|
||||
|
||||
|
||||
|
||||
func _on_timer_timeout(scroll_number: int) -> void:
|
||||
func _on_timer_timeout() -> void:
|
||||
print("removing sprite: ", scroll_number)
|
||||
scrolls[scroll_number].visible = false
|
||||
|
||||
Reference in New Issue
Block a user