16 lines
499 B
GDScript
16 lines
499 B
GDScript
extends CharacterBody2D
|
|
|
|
|
|
|
|
func _on_area_2d_body_shape_entered(body_rid, body, body_shape_index, local_shape_index):
|
|
if body.name == "plr" and body.can_move:
|
|
body.can_move = false
|
|
var dial = body.get_node("Camera2D/dialogue")
|
|
dial.visible = true
|
|
dial.dialogue("Erm...","upsidedown",0.5)
|
|
await get_parent().proceed
|
|
dial.dialogue("Get out of my way...","nervous",0.5)
|
|
await get_parent().proceed
|
|
dial.dialogue("I HATE spikes in tunnels...", "normal", 0.5)
|
|
await get_parent().proceed
|