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