SFML community forums

General => SFML projects => Topic started by: naemwear on January 05, 2022, 05:24:35 pm

Title: Sprites not drawing textures instead drawing squares
Post by: naemwear on January 05, 2022, 05:24:35 pm
Link to a video showing the problem: https://youtu.be/K-dy3tugJ6s
Code: https://pastebin.com/G6e5je1f


So I am having this problem when I spawn bullets their textures don't show instead just a square shows.
I don't know what is happening or what could be the cause of the problem.
I have listed all the necessary links above, please help. Thank you in advance.
Title: Re: Sprites not drawing textures instead drawing squares
Post by: eXpl0it3r on January 05, 2022, 05:30:38 pm
Try passing true as second parameter to the setTexture function, that way the texture rect is updated to match the texture size
Title: Re: Sprites not drawing textures instead drawing squares
Post by: naemwear on January 06, 2022, 08:38:24 pm
Didn't work unfortunately!