Help with dialogue implementation

Godot Version

Godot 4

Question

Hey! I am new to Godot and programming in general. I was trying to follow a dialogue tutorial(by Nathan Hoad, where he uses DIalogueManager) and there is this bug I don't understand

image

I didn’t follow the tutorial completely since I skipped the part where he changes the collision shape depending on where the player is facing(I put the collision shape just on the character itself). But other than that I think I followed it setp by step? I might have tried changing some things since it wasn’t working.

This is the code I have on my player.gd:

extends CharacterBody2D

const SPEED = 300.0
const JUMP_VELOCITY = -400.0
@onready var actionable_finder: Area2D = $“../Old dude/Actionnable”

func _physics_process(_delta: float) → void:


var direction := Input.get_axis("ui_left", "ui_right")
if direction:
	velocity.x = direction * SPEED
else:
	velocity.x = move_toward(velocity.x, 0, SPEED)

func _unhandled_input(_event: InputEvent) → void:
if Input.is_action_just_pressed(“ui_accept”):
var actionables = actionable_finder**.get_overlapping_areas()** →This is where the problem is
if actionables.size() > 0:
actionables[0].action()

	return

actionable_finder is null when you look for the overlapping areas. Likely because the path is incorrect.

Try using drag and drop to set up the @onready variable for that node.