Astra Cat's Simple Cursor Script

astracat111

Astra Cat
Veteran
Joined
Jun 16, 2015
Messages
206
Reaction score
114
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
7
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.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

There's another Humble Bundle available now for RPG developer assets, this time focused somewhat more towards pixel art style games.
Ive got a long lost half uncle. Thats real cool.
I forget what is bumping rule in this forum. Is anyone know? Thank you.
BCj
Ew, why does my blogpost on the rpgmaker.net site look like a garbled mess? Are html codes disabled or something?
I feel that I should cut down on my order queue so I can get some more time for my projects, its been quite a longggg while since I worked on them LOL

Forum statistics

Threads
97,900
Messages
947,726
Members
129,136
Latest member
ivanpuvko
Top