mirror of
https://github.com/creyD/ludum_dare_46.git
synced 2026-06-19 16:40:19 +02:00
added Credits Music
This commit is contained in:
@@ -3,12 +3,17 @@ 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)
|
||||
|
||||
Reference in New Issue
Block a user