Hello again,
I really like Mouse System Ex, and even though it uses a faster method than this one, I needed something much simpler in where I could also access some global variables pertaining to the mouse in a simple fashion. So here's the script. Make sure to put it after the script that creates your HUD graphics if you're creating a HUD, as your cursor will show you behind it rather than in front in that case.
Features:
- Custom mouse cursor in pictures folder is required, default name is "cursor". I think you can use either PNG or bitmap graphics.
- Simple custom globals that are updated constantly for access in your rpg maker mv scripts.
Download (Updated 1 15 2016 - works fine with all scenes now)
https://gist.github.com/markhansaven/d20d1346be88ec15ae12#file-as_simplemousescript-js
Make sure it's called AS_SimpleMouseScript.js in your plugins folder.
Use:
Here are the globals you get:
MouseX - cursor Y
MouseY - cursor X
MouseXGrid - cursor X in tiles
MouseYGrid - cursor Y in tiles
MouseXo - cursor origin X
MouseYo - cursor origin Y
MouseCustomCursorVisible - toggles visibility, has to be a string like 'true' or 'false', not true or false.
In any event you can create a script command and place this:
MouseCustomCursorVisible = 'false';
And it will toggle the visibility, in this case turning it off. Make sure to put the 'quotation marks in there' as it's a string.
License:
Use it all you'd like, change it, modify it, make it better, or sell it and make a million dollars, I don't care. ; p
Demo:
Astra Cat's Simple Cursor Script
● ARCHIVED · READ-ONLY
-
-
This does not appear the mouse cursor is in combat.
I have all of the battle a
MouseCustomCursorVisible = 'false' ? -
EDIT: Just fixed the problem by throwing a timer in there and doing it as Scene_Base instead of Scene_Map. Here's the new script. It should work on battles now just fine:
https://gist.github.com/markhansaven/d20d1346be88ec15ae12#file-as_simplemousescript-js -
Thanks for your plugin script! But sorry, I have some problem with it. I have a type error with your plugin. Althought followed your explanation, It doesn't work well and can't start my game because of type error message and black screen. Please help me!
-
Hello!
First of all thanks for this brilliant script! Could use it so far, I row 84 and 85 uncommented.
The I had to do, unfortunately, because I got an error. Can you help me?
Thank you!
Code:Failed to load resource: net::ERR_FILE_NOT_FOUND rpg_managers.js:1722 TypeError: Cannot read property 'scrollType' of null at Game_Map.isLoopHorizontal (rpg_objects.js:5646) at Game_Map.roundX (rpg_objects.js:5696) at Game_Map.canvasToMapX (rpg_objects.js:5751) at Scene_Title.Scene_Base.update (/C:/Users/Benutzer/Documents/Games/Test 2/js/plugins/AS_SimpleMouseScript.js:84) at Scene_Title.update (rpg_scenes.js:265) at Function.SceneManager.updateScene (rpg_managers.js:1788) at Function.SceneManager.updateMain (rpg_managers.js:1754) at Function.SceneManager.update (rpg_managers.js:1680) -
I know this thread is kind of old, but I guess this is the best place to find help.
Can I store the variables of this plugin somehow in normal MV variables?
I want to save MouseX and MouseY into my pleb variables called Mouse X and Mouse Y so I can use them in events.