feat: new dialogue with NPC
This commit is contained in:
@ -55,6 +55,8 @@ func _ready() -> void:
|
||||
func _physics_process(delta: float) -> void:
|
||||
play_anim()
|
||||
if is_in_cutscene:
|
||||
play_anim_idle()
|
||||
velocity.x = move_toward(velocity.x, 0, speed)
|
||||
move_and_slide()
|
||||
return
|
||||
|
||||
@ -89,3 +91,6 @@ func _physics_process(delta: float) -> void:
|
||||
|
||||
func _on_dialogue_manager_dialogue_ended() -> void:
|
||||
set_in_play()
|
||||
|
||||
func _on_trigger_dialogue_body_entered(body: Node2D) -> void:
|
||||
set_in_cutscene()
|
||||
|
Reference in New Issue
Block a user