826
General / Re: How to copy a sprite 2+ times over the screen?
« on: February 25, 2013, 01:52:51 am »
Move your sprite, draw it on the window, move it again and draw it again.
Or use the same sf::Texture for 2 different sf::Sprite, each with its own position (and rotation etc.), and draw both of them.
Do not hesitate to use multiple sprites when needed, they are inexpensive. Just don't duplicate textures.
Or use the same sf::Texture for 2 different sf::Sprite, each with its own position (and rotation etc.), and draw both of them.
Do not hesitate to use multiple sprites when needed, they are inexpensive. Just don't duplicate textures.