I am making a maze game and I got some problems with spawn point of my player sprite. The player will control the sprite through the maze using the mouse. The problem is that I want my player to start from a point not to start from where player clicked play button. I don't know if I can explain it that you guys can understand... I will add images.
Here is my main menu.
When play is clicked, game starts, and because my sprite will be rendered at mouse position, sprite will move at last mouse coords.
This is the problem. I want the player to start from the down-right corner not from middle of the screen..
- I started sfml 2 weeks ago.
- Code on pastebin: http://pastebin.com/auuCNKUp
- Red sprite means collision.