SFML community forums

Help => Window => Topic started by: Dreken on September 07, 2012, 09:14:34 pm

Title: Help, Printing an Array to Window is causing unusual Display
Post by: Dreken on September 07, 2012, 09:14:34 pm
I need help desperately, I am on Windows 7, using SFML 2.0-RC, and visual studio 2010.

Here is the snippet of code:

 

And here what is being outputted (attachment).


Why is there a space of nothing, and then suddenly the first row?

Why is the first row being printed after everything and the null pointer? Why is it starting at the index point "1" in the array instead of "0" like it should? (As in it starts at 1, gets to the null pointer, then goes back to 0.)

Thanks for your help.

Title: Re: Help, Printing an Array to Window is causing unusual Display
Post by: Laurent on September 07, 2012, 09:29:41 pm
You set the position of your sprites after drawing them.
Title: Re: Help, Printing an Array to Window is causing unusual Display
Post by: Dreken on September 07, 2012, 09:35:12 pm
Thanks! I've fixed it based on your reply. It works now. You're the best.