Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - RXaG

Pages: [1]
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?

Pages: [1]
anything