Set Cursor Mode in Intro Screen - Can't get Cursor to Stay

Started by MCF, Mon 15/12/2003 08:22:51

Previous topic - Next topic

MCF

I'm trying to have 1 cursor for the opening screen.  I have the following script...


// room script file

function room_a() {
 // script for room: Player enters screen (before fadein)

GUIOff (0);
GUIOff (1);  
GUIOff (2);
SetCursorMode (8);

}

function room_b() {
 // script for room: Repeatedly execute

SetCursorMode (8);  
}


All the GUI's are off to get them out of the way.  I initially had the setcursormode running on room entrance, but then added it to repeat execute to combat the right clicking.  However, when you right click, it still flashes the other existing cursor for the millisecond of processing time.  

How do I get the one cursor to be the only cursor for the screen?  

Gilbert

If you don't want the "right-click" part to function in that specific room, there're more than one way to do it, one suggestion is to check for what room the character's in, so do something like the following in your right-click script (assuming your opening screen is room 5, you may need to modify this yourself):

if (character[GetPlayerCharacter()].room!=5){
//whatever stuffs for changing the cursor while right clicked here
}

SMF spam blocked by CleanTalk