SFML community forums

Help => Graphics => Topic started by: ZeroCool on May 30, 2018, 02:51:03 am

Title: Images do not appear on the screen when debugging my program.
Post by: ZeroCool on May 30, 2018, 02:51:03 am
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.  :)

Title: Re: Images do not appear on the screen when debugging my program.
Post by: eXpl0it3r on May 30, 2018, 08:03:22 am
Do you check what loadFromFile returns?
Title: Re: Images do not appear on the screen when debugging my program.
Post by: Stauricus on May 30, 2018, 12:45:27 pm
well then, we'll need to see the code.
Title: Re: Images do not appear on the screen when debugging my program.
Post by: jamesL 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