what does the error mean?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By mdubaisi

extends CanvasLayer

const PLAYER2 = preload(“res://scenes/characters/players/player_2.tscn”)
var player2 = PLAYER2.instance()

func _ready():
$UI_container/full_hearts.rect_size.x = 144

func _physics_process(delta):
$UI_container/ball_counter.text = str(balls)

func ballsChange():
balls -= 1

func healthChange():
$UI_container/full_hearts.rect_size.x -= 48

i have this script and every time i run the scene an error pops up that says:
Parser Error: Can’t preload resource at path:

what does the error mean?

:bust_in_silhouette: Reply From: kidscancode

It means that file can’t be loaded. Check that you have the path and file name correct and that you can open the scene in the editor.

thanks for your answer
but that didn’t work

mdubaisi | 2020-07-19 16:20