mirror of
https://github.com/creyD/ludum_dare_46.git
synced 2026-06-11 21:22:22 +02:00
20 lines
512 B
GDScript
20 lines
512 B
GDScript
extends Node2D
|
|
|
|
export(String, FILE, "*.tscn,*.scn") var scene_to_load = ""
|
|
onready var animation_player = $AnimationPlayer
|
|
|
|
|
|
func _process(delta):
|
|
if Input.is_action_pressed("skip"):
|
|
animation_player.playback_speed = 8.0
|
|
else:
|
|
animation_player.playback_speed = 1.0
|
|
|
|
|
|
func _ready():
|
|
SoundControler.pub_play_music("res://Menus/Credits/Chad_Crouch_-_Algorithms.ogg",false)
|
|
|
|
func _on_AnimationPlayer_animation_finished(anim_name):
|
|
SoundControler.pub_stop_music()
|
|
get_tree().change_scene(scene_to_load)
|