credit
This commit is contained in:
@@ -11,12 +11,13 @@ var player
|
||||
|
||||
func _ready() -> void:
|
||||
doggo_anim_player.play("sleep")
|
||||
anim_player.play("Idling")
|
||||
|
||||
func dialog():
|
||||
anim_player.play("RootAction")
|
||||
anim_player.play("talking")
|
||||
for i in range(1, 7):
|
||||
label.text = Sauvegarde.get_text("neige" + str( i ) )
|
||||
await get_tree().create_timer( 7 ).timeout
|
||||
await get_tree().create_timer( 5 ).timeout
|
||||
|
||||
anim_player.stop()
|
||||
sprite_label.visible = false
|
||||
@@ -27,7 +28,7 @@ func _on_area_3d_body_entered(body: Node3D) -> void:
|
||||
if body.is_in_group("player"):
|
||||
player = body
|
||||
sprite_label.visible = true
|
||||
player.set_dialog_mode( global_position, 0)
|
||||
player.set_dialog_mode( global_position)
|
||||
dialog()
|
||||
area_3d.queue_free()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user