I am starting a new thread, rather than re-opening another one to keep the problem clear.
Background
I am using Shaz's mouse script. http://forums.rpgmakerweb.com/index.php?/topic/17829-amaranths-super-simple-mouse-system-for-ace/
Following several player requests, I decided to try and find a way to allow the player to enable/disable the custom mouse. The initial problem was getting the game to remember the data when the player quit. However, after some work (by others, not by me) the result was this mini-script. (the switch number is mine, it could be any).
module SHAZ module MouseSwitch ENABLED_SWITCH = 299 endendclass Sprite_Mouse < Sprite def enabled=(value) @enabled = value $game_switches[SHAZ::MouseSwitch::ENABLED_SWITCH] = value self.visible = value endendmodule DataManager class << self alias shaz_mouse_switch_load_game load_game alias shaz_mouse_switch_setup_new_game setup_new_game end def self.load_game(index) loaded = shaz_mouse_switch_load_game(index) if loaded $mouse.enabled = $game_switches[SHAZ::MouseSwitch::ENABLED_SWITCH] if $mouse && $game_switches return true else return false end end def setup_new_game shaz_mouse_switch_setup_new_game $mouse.enabled = true if $mouse endendIn essence it works by a script call : $mouse.enabled = true/false.
It is necessary to have that script call at the very beginning of the game. After that, the mouse can be enabled/disabled by another script call. I did this by adding a line to the main menu which calls up a common event, with a show choice. Depending on what the player selects the appropriate script call is made. It seemed to work, and the previous thread was closed.
The problem
If the player never changes anything, no problem.
If the player disables the mouse and never does anything else again, then no problem. the custom mouse and its functions go, the default mouse arrow appears in the usual way until you either push it to one side or use an arrow key. That was what I specifically tested for.
However, if the player changes their mind and re-enables the custom mouse, it comes back - but with the default mouse arrow on top of it. You see both icons the whole time. It looks dreadful, and confusing.
Request
Does anyone know of a way to prevent the default mouse arrow from showing when the custom mouse comes back? There must be something in the main script which gets rid of it in the first place, and presumably that method needs to be re-activated or transferred into the mini-script. Being a scripting idiot I haven't a clue about how that might be done.
Any help would be much appreciated.
Thanks.
Background
I am using Shaz's mouse script. http://forums.rpgmakerweb.com/index.php?/topic/17829-amaranths-super-simple-mouse-system-for-ace/
Following several player requests, I decided to try and find a way to allow the player to enable/disable the custom mouse. The initial problem was getting the game to remember the data when the player quit. However, after some work (by others, not by me) the result was this mini-script. (the switch number is mine, it could be any).
module SHAZ module MouseSwitch ENABLED_SWITCH = 299 endendclass Sprite_Mouse < Sprite def enabled=(value) @enabled = value $game_switches[SHAZ::MouseSwitch::ENABLED_SWITCH] = value self.visible = value endendmodule DataManager class << self alias shaz_mouse_switch_load_game load_game alias shaz_mouse_switch_setup_new_game setup_new_game end def self.load_game(index) loaded = shaz_mouse_switch_load_game(index) if loaded $mouse.enabled = $game_switches[SHAZ::MouseSwitch::ENABLED_SWITCH] if $mouse && $game_switches return true else return false end end def setup_new_game shaz_mouse_switch_setup_new_game $mouse.enabled = true if $mouse endendIn essence it works by a script call : $mouse.enabled = true/false.
It is necessary to have that script call at the very beginning of the game. After that, the mouse can be enabled/disabled by another script call. I did this by adding a line to the main menu which calls up a common event, with a show choice. Depending on what the player selects the appropriate script call is made. It seemed to work, and the previous thread was closed.
The problem
If the player never changes anything, no problem.
If the player disables the mouse and never does anything else again, then no problem. the custom mouse and its functions go, the default mouse arrow appears in the usual way until you either push it to one side or use an arrow key. That was what I specifically tested for.
However, if the player changes their mind and re-enables the custom mouse, it comes back - but with the default mouse arrow on top of it. You see both icons the whole time. It looks dreadful, and confusing.
Request
Does anyone know of a way to prevent the default mouse arrow from showing when the custom mouse comes back? There must be something in the main script which gets rid of it in the first place, and presumably that method needs to be re-activated or transferred into the mini-script. Being a scripting idiot I haven't a clue about how that might be done.
Any help would be much appreciated.
Thanks.