Load game1 scene after campfire dialog

This commit is contained in:
Alice Gaudon 2020-08-18 12:02:36 +02:00
parent 1d0f1bae80
commit f24941db1b
3 changed files with 1 additions and 3 deletions

View File

@ -55,7 +55,6 @@ frames = ExtResource( 7 )
[node name="Camera2D" type="Camera2D" parent="Game/Player"] [node name="Camera2D" type="Camera2D" parent="Game/Player"]
[node name="Opening2" type="Node2D" parent="."] [node name="Opening2" type="Node2D" parent="."]
visible = false
[node name="Opening2Bg" type="AnimatedSprite" parent="Opening2"] [node name="Opening2Bg" type="AnimatedSprite" parent="Opening2"]
frames = ExtResource( 2 ) frames = ExtResource( 2 )
@ -104,6 +103,5 @@ position = Vector2( 210.738, 5 )
shape = SubResource( 4 ) shape = SubResource( 4 )
[node name="Opening1" type="AnimatedSprite" parent="."] [node name="Opening1" type="AnimatedSprite" parent="."]
visible = false
frames = ExtResource( 1 ) frames = ExtResource( 1 )
centered = false centered = false

View File

@ -7,7 +7,6 @@ onready var player = $Game/Player
onready var player_camera = $Game/Player/Camera2D onready var player_camera = $Game/Player/Camera2D
func _ready(): func _ready():
launch_game()
$Opening1.play('default') $Opening1.play('default')
yield($Opening1, 'animation_finished') yield($Opening1, 'animation_finished')
$Opening1.hide() $Opening1.hide()

View File

@ -20,6 +20,7 @@ func _ready():
yield(get_tree().create_timer(2.0), 'timeout') yield(get_tree().create_timer(2.0), 'timeout')
yield(start_dialogue(intro_dialogue), 'end') yield(start_dialogue(intro_dialogue), 'end')
get_tree().change_scene("res://scenes/game1.tscn")
func update_camera(): func update_camera():
var animation = dialogue_box.expression var animation = dialogue_box.expression