Super Simple Mouse System

Introduction
This is a fully functional mouse system. It supports path finding, custom cursors, and full menu support.

I was inspired to make this system when I saw the mouse scripts created by Astro_mech and Mr.Mo. The path finding in this script isn't as good as the path finding in Astro's script, but you will be able to have full mouse support in all menus. The script is also based on shun's execellent mouse script (http://simp.nobody).

Note: If anyone would like to take over this project, please let me know.

Demo
You can download the demo here: DOWNLOAD MOUSE SYSTEM DEMO HERE

Version 1.1
The following changes have been made to this script since its initial release:
-Lag fixed (Oct 7,2007)
-Event w/switch on by default crash bug fixed (Oct 7, 2007)

What's next:
Path finding to be implemented.

Screenshot
downloads//mouse_fMf.png[/IMG]

Script
Download the demo

How to Use
1. Put the cursor that you want to use in your Icons folder. For example, sword.png (24x24 pixels only)
2. Add an event to your map.
3. Open the event and put a comment on your first line. The comment should have the name of the cursor. For example: sword
4. Play game!

Credits
This is an adaptation from a script created by shun (http://simp.nobody.jp/)
Also looked at Cybersam's work and Astro_mech and Mr.Mo's mouse script. You people rock!


Bugs
1. Pathfinding isn't as good as it could be. I shall work on this. If you have suggestions, let me know.
2. If you put a comment in the first line of an event command box, and the comment isn't an icon, your game will break. I'm working on fixing this.
Is it possible to just have a point and click event trigger instead of using path finding? If someone is to make a text adventure out of this system, then it'll prove more useful. Of course, you can do what you want with it, but just a thought.
Yep, I think that could be easily done. My next project is an adventure game, so if a script doesn't exist at that time, I'll create one.
Would this be able to work with the ZTBS by any chance? I mean without errors. Very nice script btw
Hi Amanda, I just love your series of "super-simple" scripts ^_^
Two questions: where's the pathfinding? I can only see moving forward to target. Which is better when the target is moving, but still no pathfinding. Second question is about the Game.exe. can you tell what changes have been made to it? And if it could cause any troubles with the default system or other scripts?
Anyway, this is already pretty good. I tried making something like this for f0tz!'s pixelmovement, but the results were quite crappy ^_^ Maybe when f0tz releases the new version there'll be something to work on again.
"Keep up" ;)
Yarks! Okay, maybe it isn't path finding? I don't know what to call it... You point, click, and the character tries to walk over to the place where you clicked.

arevulopapo, feel free to take anything from this for your own systems. I figure we've all got to help each other out if we want to make RMXP better.
First I have to say....this really helps me out^^ thank you.
And I 've a question, how did you do that thing with the RGSS Player. I mean the one with the sword
Sorry if that isn't the right place to ask^^"""
badmanour, i'll try and incorperate it into ZTBS version 2 if thats fine with Lambchop :).

Good work btw...just tested out...its rather nice....the AI needs improving because when you go into the tent and it says its locked if you click above the horizontal line it isn't smart enough to walk to the point.
Hmm, it's a great script (and indeed super simple - which is good), but unfortunately the lag is immense. 17 fps on the title screen then 1-5 FPS in maps of more than 20x20 is what I get.

That's with this demo, and:
-3GHz Intel P4
-2 GB RAM
Very cool script here.
This would go great with my escape-the-room type mini game in my project.

-=note=-
if any of you played games like Muselink or other point-&-clink escape type games you'll understand where i'm getting at with this.
-=end note=-

-=error report=-
I"m getting an error on these two lines
rx = $mousex - (@real_x / 4 + 16)
ry = $mousey - (@real_y / 4 + 16)
How can i fix this?
-=end error report=-

-=Error fixed=-
Never mind error has been fixed.
though with the cms that I'm using this script lags the cms I'm using.
But oh well it's working now.
-=end of report=-
I like it but I would like it more if it was just for events not moving
Wtf... you can't lock a tent... nice script though. I'm not sure if this is a bug, but when you are in the door of the tent, and click on the treasure chest, it replays the "Locked" event instead of moving to the chest.
[QUOTE=samboy;284152]Wtf... you can't lock a tent... nice script though. I'm not sure if this is a bug, but when you are in the door of the tent, and click on the treasure chest, it replays the "Locked" event instead of moving to the chest.[/QUOTE]

Actually, when your in the door of the tent and you click on the treasure chest, your character tries to move up, but because your in the tent, it's like he's trying to get into the tent. Not a bug, just an annoyance that could be fixed.

Other than that, great job!! I love your super simple scripts, they're all so cute looking! Good luck!

-Krobe
This is really good, man. I'd definatly use this if the tiny kinks were worked out.
I've updated the script with the following changes:
-Lag fixed (Oct 7,2007)
-Event w/switch on by default crash bug fixed (Oct 7, 2007)

The next step is to get pathfinding working.
Edit: Thanks! That helped a million!
^- yeah. ide like to know it too! XD
http://www.angusj.com/resourcehacker/
Heya, Wyatt here.

I really like this mouse system, but I have a better one already (not to sound mean or anything). But, the menu parts of this are way better than what I have.

Is it possible to have just the parts of this that affect the menu? (Would that cause any complications?) (i.e. no map mouse effects, no mouse movement, etc). Is it also possible for this to be compatible with Mr.Mo's Interactive Mouse System?

Basically, I'd like to use Mr.Mo's for everything except the menu, and then this script for the menu.

Sorry if I'm sounding/being complicated here, things tend to make more sense in my head than on-screen. :)

Also, can I use this in a commercial game (with credit of course)?

EDIT: I think I know what I'm doing actually, it seems pretty simple. This is a really simple but really effective system you have here.
There are two updated mouse scripts that may be coming your way (not made by me)
I'd kill for one that reads the mouse wheel scrolling.
Lol, i would too, i've been locking forever for one.
it was kinda buggy for me, couldnt get a lock on that moving thing and it pissed me off
Hey Mac, are you still planing on doing the ZTBS compatible version?
I need(not really, just want) a mouse system compatible with ZTBS.
That would seriously be awsm.
Oh yeah, that would make things soo easy to do.
Hello, this Post may be OLD (Didn't check the date :P) but I get this error when I start my game :( is it because of SDK?:s:s:s :(
I noticed that it is 8-way movement, which I find distracting, and annoying. I am asking you to please make a version that can disable that feature, since after looking at the script, would mean that you would have to re-calculate some numbers.
Is it possible with MR Mo SBABS?
Thanks for this script! I'm in love with it :) My game has an abs system and i just wished I knew how to attack with the mouse. =/

Original thread: https://www.hbgames.org/forums/viewtopic.php?t=28917