Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: What I did wrong?  (Read 975 times)

0 Members and 1 Guest are viewing this topic.

Feonor

  • Newbie
  • *
  • Posts: 1
    • View Profile
What I did wrong?
« 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.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11032
    • View Profile
    • development blog
    • Email
Re: What I did wrong?
« Reply #1 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.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/