Added progress & major dialog bugfix

This commit is contained in:
2020-05-16 13:22:42 -04:00
parent afde971c17
commit 7528cba7d7
33 changed files with 237 additions and 8 deletions

View 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")

View File

@ -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"