Added progress & major dialog bugfix
This commit is contained in:
12
client/Scripts/Singletons/CreditsManager.gd
Normal file
12
client/Scripts/Singletons/CreditsManager.gd
Normal file
@ -0,0 +1,12 @@
|
||||
extends Control
|
||||
|
||||
const SCROLL_SPEED = 25
|
||||
|
||||
func _ready():
|
||||
$"/root/MusicManager".play_music("Dystopian/The Story Continues")
|
||||
|
||||
func _process(delta):
|
||||
$Scolling.rect_position.y = $Scolling.rect_position.y - delta * SCROLL_SPEED
|
||||
|
||||
if abs($Scolling.rect_position.y) > $Scolling.rect_size.y + 100:
|
||||
get_tree().change_scene("res://Scenes/Title.scn")
|
@ -5,6 +5,7 @@ var looping : bool = false
|
||||
|
||||
func _ready():
|
||||
main_player = self
|
||||
bus = "Music"
|
||||
|
||||
func play_music(song, loop=true):
|
||||
var audio_file = "res://Assets/Music/" + song + ".ogg"
|
||||
|
Reference in New Issue
Block a user