- Joined
- Jun 16, 2015
- Messages
- 207
- Reaction score
- 119
- First Language
- English
- Primarily Uses
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:
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:
Last edited by a moderator: