Actually, unless you were using a helper library, it's the same thing as SDL.
In my opinion, the function "SDL_BlitSurface" is very usefull for programming animations...
You should really just start toying with it; nothing ever makes sense to me until I use it for myself.
Yes, I know... I´m using the SFML since 3 or 4 days and of course there is still a lot to learn. Now I try to do a few things, which I would use in a game later (for example collision, animation or some easier things^^) - sometimes it is really easy to realise something with the SFML, but unfortunately not always. Thats why I asked a lot of things
It would be easier to code; people just use sprite sheets because they're easier to edit.
Ok, thanks... than I´ll try this
EDIT:I´m very sorry that I´ve ask something (probably stupid easy) again :oops: , but I don´t find a good solution.
I want to do something like this:
if(Window.GetInput().IsKeyDown(sf::Key::Space))
Window.Draw(sprite);
Ok, if I now press Space, the sprite appears until I release the space button. Similar situation when I use std::cout to write something in the console, the writing is shown again and again in the console while I´m holding the space button.
I think this is why I set my code into the Main-Loop, but out of the loop this piece of code is (of course) not working.
But I want that the sprite doesn´t disappear after I release the key. Or that the writing appears just one time...
You´re probably annoyed of my questions, but I´m not to lazy to try something by myself, it´s just that I don´t find a good or possible solution