Blizz mouse addon

Started by Delusian, October 26, 2010, 07:34:55 am

Previous topic - Next topic

Delusian

I was wondering if you could add the
'$mouse.set_cursor('Arrow4')'
to a hover. So when the mouse goes over enemies I can have message appear saying the monsters level and/or show a quest maker logo or sword for monsters.

Blizzard

Yes, that's possible. That was actually why I added the set_cursor method in the first place.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Delusian

So how do I go about doing this?

stripe103

Quote from: Blizzard on October 26, 2010, 07:59:52 am
Yes, that's possible. That was actually why I added the set_cursor method in the first place.

No it wasn't. At least you didn't publish it until I asked you :D

Blizzard

Yes, it was. But I didn't say it was my idea. xD

@Delusian: You need to match the coordinates of the mouse against the objects on the screen in an update method.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Delusian

But if the monsters moving how would it work?

ForeverZer0

Quote from: Delusian on October 26, 2010, 11:20:56 am
But if the monsters moving how would it work?


An update method is run every frame (40 times a second). Unless your enemies move around the screen like lightning, it should be able to keep up with them and their coodinates.  ;)
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

nathmatt

just look how its done in MCES you can change the mouse when over an event/enemy display text too tho i can not remember if i fixed it to allow spaces
Join Dead Frontier
Sorry, I will no longer be scripting for RMXP. I may or may not give support for my scripts. I don't have the will to script in RGSS anymore.
My script