If I wanted to draw a sprite at positions (28, 500) relative to the Window (for example), how would I do it?
I can't seem to use the mapPixeltoCoords properly.
I have this at the top of main():
sf::Texture tTexture;
sf::Sprite textbox;
if(!tTexture.loadFromFile("images/TextBox.png"))
std::cout << "Error: Game failed to load 'textbox' image." << std::endl;
textbox.setTexture(tTexture);
What should I have within "while(Window.pollEvent(Event))" to make it draw at (28, 500) regardless of the current view?
Sorry, but I'm a beginner at this stuff lol.
Also, I'm on SFML 2.1.