How can import textures to a script?

:bust_in_silhouette: Reply From: Inces

You want to set texture of a sprite with a png file.
What You did is force the texture tu load an image.
All You need to do is :

var sprbullet = Sprite.new()
sprbullet.texture = load("res://bullet.png")

Hey, thanks for the info! Really helped me a lot.

Savio | 2021-10-12 20:33