You need to wrap that image reference in a load call. So, this…
$Sprite.texture = load("res://Img/black.png")
Two questions
if i had a bunch of sprites say 1-5 and had a rng pick one how would i load that one. If i had it set up like var 1 = sprite path ect and then did $Sprite.texture = load (1) would that work?
2)how do you find the correct path?
Thank For your help.
ForgottenStar | 2021-12-12 22:40
question 1:
in theory, yes it will.
question 2:
go to the picture in the godot editor, right click it and press copy path.
happy coding!