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

Author Topic: Images do not appear on the screen when debugging my program.  (Read 1809 times)

0 Members and 1 Guest are viewing this topic.

ZeroCool

  • Newbie
  • *
  • Posts: 1
    • View Profile
    • Email
Hello, I am new to this so just bare with me. I am building the program Zombie Arena from the book Beginning C++ Game Programming and for some reason when I enter debug mode to run the game, no images appear on the window. I checked each line to make sure that there were no errors and the syntax is correct. My libraries are linked correctly and the path to my image folder is correct, I just cant seem to figure out why my images aren't appearing on my window. When the game runs all I see is a black screen, and when I ALT-TAB to check the debug window there are no errors that show up. If anyone can help that'd be great thanks.  :)


eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10801
    • View Profile
    • development blog
    • Email
Re: Images do not appear on the screen when debugging my program.
« Reply #1 on: May 30, 2018, 08:03:22 am »
Do you check what loadFromFile returns?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Stauricus

  • Sr. Member
  • ****
  • Posts: 369
    • View Profile
    • A Mafia Graphic Novel
    • Email
Re: Images do not appear on the screen when debugging my program.
« Reply #2 on: May 30, 2018, 12:45:27 pm »
well then, we'll need to see the code.
Visit my game site (and hopefully help funding it? )
Website | IndieDB

jamesL

  • Full Member
  • ***
  • Posts: 124
    • View Profile
Re: Images do not appear on the screen when debugging my program.
« Reply #3 on: May 30, 2018, 11:12:41 pm »
what if you're not in debug mode ?

what if you build the exe and run the exe directly --- outside of the IDE 

 

anything