fix: glitchy appearance of storyplayables

This commit is contained in:
tiger tiger tiger 2026-01-21 13:33:13 +01:00
parent 7fc85783cc
commit 3295c44ce9
1 changed files with 5 additions and 4 deletions

View File

@ -79,10 +79,10 @@ func _ready() -> void:
# Clunky rebuild... # Clunky rebuild...
story_array = story_array story_array = story_array
progress = progress progress = progress
if animation_player.has_animation("RESET"): animation_player.play("RESET")
if get_parent() is not CanvasLayer: if get_parent() is not CanvasLayer:
push_warning("-------------- ", "DEBUG MODE ", self, " --------------") push_warning("-------------- ", "DEBUG MODE ", self, " --------------")
hide()
await Main.curtain.open() await Main.curtain.open()
await appear() await appear()
await play() await play()
@ -130,9 +130,10 @@ func try_scroll():
func appear(): func appear():
hide() hide()
animation_player.play("RESET") if animation_player.has_animation("ini"):
await animation_player.animation_finished animation_player.play("ini")
await animation_player.animation_finished
scroll_target = 0 scroll_target = 0
# FIXME: find out why this needs to be set to prevent scenes from being fully revealed # FIXME: find out why this needs to be set to prevent scenes from being fully revealed