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:
@@ -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")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user