Animations & Movement tweaks

This commit is contained in:
2020-05-17 20:48:11 -04:00
parent abe340f025
commit 6fd53367c0
27 changed files with 2480 additions and 1378 deletions

View File

@ -4,6 +4,8 @@ export var start_on_play = true
func _ready():
connect("interacted", self, "_on_interact")
$AnimationPlayer.play("Idle")
$AnimationPlayer.seek(rand_range(0.0, 2.0), true)
$Speaker.speaker = "fast_talker"
$Speaker.speaker_name = "Dr.Thadd"
$Speaker.connect("dialog_exited", self, "give_tip")
@ -12,6 +14,7 @@ func _ready():
func _on_interact():
$Speaker.start_dialog("intro_science_followup")
$Torso.flip_h = global_position.x < player.global_position.x
func give_tip():
$Speaker.gui.display_tip("Used A & D to move\nleft and right")