Hey all, I'm still learning Godot. But I'm trying to see how I can start a dialogic node when the player is in the Area2d collision. So far, i can only get a mouse click to work but I don't know how to do with when player is close by and trigger it by a key on the keyboard
Here's my current code:
`extends Area2D
func _ready():
pass # Replace with function body.
func onYoMamainputevent(viewport, event, shapeidx):
if event is InputEventKey:
if event.pressed and event.scancode == KEYESCAPE:
var dialog = Dialogic.start("convoWithKitty")
add_child(dialog)
`
thanks again!