SFML community forums
Help => General => Topic started by: idontmakesense on February 26, 2014, 11:02:24 am
-
mySprite.setTexture(NULL) gives syntax error.
Any alternatives?
-
You dont have to Remove a sprite.
What do you want to achive by doing something like that?
-
You should probably learn basic C++ instead of trying random things. You can remove something from another data structure like an STL container, but not "on its own".
-
Sorry to be unclear. Its my first attempt making a game and coding on sfml.
I have a "car sprite" which on collision with a "bullet sprite" should, well, for now disappear/get removed/get deleted.
Any help on how to achieve that?
-
If it shouldn't appear on the screen anymore, don't draw it to the screen. And yes, acquire a solid C++ understanding first. ;)