astracat111

Astra Cat
Veteran
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:
 
Last edited by a moderator:
Joined
Dec 16, 2015
Messages
10
Reaction score
0
First Language
english
Primarily Uses
This does not appear the mouse cursor is in combat.


I have all of the battle a


MouseCustomCursorVisible = 'false' ?
 

Nemo

Veteran
Veteran
Joined
Jun 23, 2016
Messages
40
Reaction score
94
First Language
Korean
Primarily Uses
N/A
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!
 

Kojote

Villager
Member
Joined
Aug 25, 2014
Messages
15
Reaction score
1
Primarily Uses
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)
 

Benji01

Veteran
Veteran
Joined
Jun 7, 2015
Messages
104
Reaction score
8
First Language
German
Primarily Uses
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.
 

Latest Threads

Latest Posts

Latest Profile Posts

TeamEdel.png

Realized halfway through drawing this that the female protagonist's party is growing bigger. :guffaw:
oddly enough, at this point... 3 major things have kept me from porting my project to MZ... animations, and that's mainly because they don't match the artstyle of my game. and two... I NEED a YED Sideview Battler like plugin and I have yet to see one. 3rd, I don't have the money for all the stuff I need plugin wise. and I already have it on MV... lol
Generally speaking, would there be interest in some form of tutorial regarding general project management? I see there are a lot of indie/self-taught devs around here, and looking back i feel like there was a lack of resources on how to properly manage a project that might take several years to finish
I've been working on some ABS team A.I. for 'A New Suburbia', and thought I'd share.

I'm generally quite please although the AI is a little grenade heavy right now :rolleyes: - Sneaking and stalking next! Please excuse the terrible map... it was just for ease of viewing!
Voting for the second round of the Map Madness Tournament is now live! Vote for your favorite in each matchup! https://forums.rpgmakerweb.com/index.php?forums/map-madness-2021-polls.187/

Forum statistics

Threads
110,580
Messages
1,054,368
Members
143,695
Latest member
SirRiceAlot
Top