Recently i i have started to desenvolve in Godot but i need a little help in something...
if Input.is_action_just_pressed("ui_accept"):
var laser_instance = PRE_LASER.instance()
if laser_instance:
var laser = laser_instance as PRE_LASER
get_parent().add_child(laser)
laser.global_position = global_position
With this, im facing the following error:
Invalid call. Nonexistent function 'instance' in base 'GDScript'.
How exactly can i resolve this?