Flopsy/scenes/levels/02/level_02.gd

26 lines
574 B
GDScript3
Raw Normal View History

2022-07-17 14:24:15 +02:00
extends "res://scenes/levels/level.gd"
2022-07-20 04:28:30 +02:00
const INTERLUDE = "res://scenes/levels/02/interlude_02.tscn"
2022-07-17 14:24:15 +02:00
# Declare member variables here. Examples:
# var a = 2
# var b = "text"
# Called when the node enters the scene tree for the first time.
func _ready():
2022-07-20 04:28:30 +02:00
$FlakeAnimation.play("reset")
2022-07-17 14:24:15 +02:00
# Called every frame. 'delta' is the elapsed time since the previous frame.
#func _process(delta):
# pass
2022-07-20 04:28:30 +02:00
func _on_Castle_player_entered_castle():
$FlakeAnimation.play("move")
func _on_FlakeAnimation_finished(anim_name):
if anim_name == "move":
main.load_level(INTERLUDE, true)