Attention | Topic was automatically imported from the old Question2Answer platform. | |
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:
res://scenes/characters/players/player_2.tscn
what does the error mean?