feat: This enables user-defined transition and uses a tween to animate the transitions (#405)

* feat: This enables user-defined transition and uses a tween to animate the transitions

fixes #344

* docs: Automatic update of API docs

* docs: Automatic update of API docs

Co-authored-by: Dennis Ploeger <develop@dieploegers.de>
Co-authored-by: dploeger <dploeger@users.noreply.github.com>
This commit is contained in:
Dennis Ploeger
2021-09-28 11:30:40 +02:00
committed by GitHub
parent b710def99d
commit df78b52b8a
28 changed files with 323 additions and 301 deletions

View File

@@ -18,11 +18,13 @@ var current_scene: Node
var wait_level
# Reference to the scene transition node
onready var scene_transition = $layers/curtain/scene_transition
onready var scene_transition: ESCTransitionPlayer
# Connect the wait timer event
func _ready() -> void:
scene_transition = ESCTransitionPlayer.new()
$layers/curtain.add_child(scene_transition)
$layers/wait_timer.connect("timeout", self, "_on_wait_finished")