Animations & Movement tweaks
This commit is contained in:
@ -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")
|
||||
|
Reference in New Issue
Block a user