SFML community forums

Help => General => Topic started by: Feonor on March 25, 2020, 04:01:13 pm

Title: What I did wrong?
Post by: Feonor on March 25, 2020, 04:01:13 pm
Please help me to understand next problem.
When I draw small picture in paint & create the sprite list, I cant display the hero in list, I see only backGround. To illustrate this problem I`m attach 2 pictures: cipa.png - what I see, when create the sprite list; screenShot- what I see in Visual Studio, when I compile the project. (I see 4 different colors - backGround from first picture) If I use sprite list from internet - everything OK.
Title: Re: What I did wrong?
Post by: eXpl0it3r on March 25, 2020, 04:04:49 pm
Without code, we can only guess what's wrong. ;)
Would be best if you could provide a minimal but complete example.

My initial guess would be that either your texture fails to load or that you don't set the texture rect correctly.