1
Graphics / Trouble moving two sprites in the same window
« on: May 11, 2022, 08:38:31 pm »
Hello, I am trying to create a Space Invaders type program, and in that game the "aliens" move side to side at the same time. I tried achieving this using std::thread as well as sf::Thread, however I came to realize that in SFML the window.setActive must be set to false before using it in another thread, thus not allowing me to move two "sprites" or aliens at the same time to the best of my knowledge. Is there something I'm missing or another way to achieve this?