Level Select Trouble

Godot Version

4.6

Question

Why does it say functions not available am i missing something:
Error at (35, 13): Identifier “Functions” not declared in the current scope.

extends Control
class_name LevelSelect

@onready var current_level: LevelIcon = $LevelIcon
var parent_world_select: Node

# Called when the node enters the scene tree for the first time.
func _ready() -> void:
	$PlayerIcon.global_position = current_level.position

func _input(event):
	if event.is_action_pressed("Left") and current_level.next_level_left:
		current_level = current_level.next_level_left
		$PlayerIcon.global_position = current_level.position

	if event.is_action_pressed("Right") and current_level.next_level_right:
		current_level = current_level.next_level_right
		$PlayerIcon.global_position = current_level.position

	if event.is_action_pressed("Jump") and current_level.next_level_up:
		current_level = current_level.next_level_up
		$PlayerIcon.global_position = current_level.position

	if event.is_action_pressed("ui_down") and current_level.next_level_down:
		current_level = current_level.next_level_down
		$PlayerIcon.global_position = current_level.position

	if event.is_action_pressed("Quit"):
		get_tree().get_root().add_child(parent_world_select)
		get_tree().current_scene = parent_world_select
		get_tree().get_root().remove_child(self)

	if event.is_action_pressed("Select"):
		if current_level.next_scene_path:
			Functions.load_scene_to_screen(current_level.next_scene_path) <----- THIS IS THE PROBLEM
1 Like

solved it

1 Like

Its migh be something i m looking for . Not for My current project but best for future use .. may i get More information about these levels selecting codes ??:grinning_face_with_smiling_eyes: