Having trouble with textures and sprites
CullenDAvello (18)

Ok so, (I’m using SFML) I have (had) set up a Texture texture; if (!texture.loadFromFIle(“texture.json”)) and I had the sprite code but when I went to window.draw the sprite I had 8 errors I couldn’t fix any of them so I deleted it.. i was wondering if its because it was a json and not a png... can someone do it for me? Also I’m using SFML. Also the image is already in a file under Assets> hallway.json>

I thought I followed the SFML tutorial pretty close but I was wrong. And @SPQR i was wondering if you wanted to collaborate on this because the new update is amazing and lets you add people.

You are viewing a single comment. View All
CullenDAvello (18)

@SPQR hey thanks i just wanted it set up so i could draw the sprite, nothing complicated