I am making a game ( based on geometry wars ) as a project for school using C++ and SFML.
The game consists of a fullscreen window, a field, and various sprites.
Your character is controlled by the WASD keys and its bullets follow a path parrallel to the position of the mouse in relation to the center of the screen.
All that works but since the aiming is based off of an invisible point and not the character itself, having the cursor display makes things very confusing. You would expect the bullets to go towards the mouose, but that would make the game far to easy.
And so I am trying to find a way to cause the cursor to disappear. Ive been searching all day to try to find some sort of solution. Everything I have tried has failed. And please dont say "look at the SetCursor function". Or at least if you do, provide a working example of how to use it. And it better not look like this:
SetCursor(LoadCursor( NULL , IDC_NO ));
or this:
ShowCursor( FALSE );
cause ive tried them and they dont work. Unless im doing something wrong...
If it makes a difference im using codeblocks on Windows XP
Ignore the part at the start for now. I just want to make a test program that can hide or change the cursor symbol.
If possible could someone provide a working function that causes the mouse to disappear until a key is pressed?
Any assistance that would help ease my headache over this would be greatly appreciatted.