(This is the same question I asked on discord, but I hadn’t gotten any responses so I thought I’d try here)
Hello, I was working on the Hoppy Days project and was adding the lighting’s script, I’ve run into an error and I don’t know what I did to cause it the code:
extends Node
func _ready():
set_as_toplevel(true)
global_position = get_parent().global_position
The error:
Parser Error: The method "set_as_toplevel" isn't declared in the current class.
I have the same code as shown in the lesson, not sure where I went wrong. Could anyone help me out?