Hey guys,
I've probably tackled this the wrong way but alas.
I've set my mouse mode to pointer during my menu screen, when I right click (point cycle) i can briefly see the following pointer flicker although the pointer mode is unchanged.
Here is my code -
function repeatedly_execute() {
// put anything you want to happen every game cycle, even when
// the game is paused, here
if (IsGamePaused() == 1) return;{}
if (Gui2.Visible) mouse.Mode = eModePointer;{}
Perhaps I could disable pointer cycling during this room?
Any help would be greatly appreciated :)
regards,
since the repetedly execute section executes every frame it will do it 40 times in a seconds so when you change the cursor mode it will remain until the function checks to see if the game is paused then changes back, which is why it just flickers.
It would be better to disable the other mouse modes during this scene
Use mouse.DisableMode for this, then just enable it after you leave the title screen
Quote from: Ethan Damschroder on Sat 21/11/2009 06:21:50
since the repetedly execute section executes every frame it will do it 40 times in a seconds so when you change the cursor mode it will remain until the function checks to see if the game is paused then changes back, which is why it just flickers.
It would be better to disable the other mouse modes during this scene
Use mouse.DisableMode for this, then just enable it after you leave the title screen
Aha, I'm glad I thought of that ;)
Thanks a ton