Hey guys and girls :D!
I found the script below while searching for a good mousescript. Its perfect for my game, but there are some things which have to be changed and i really don't know how...
1. The player shouldnt follow the curser if the left mous button is pressed. (I deleted line 156-161 and it worked but i'll post the full script here. )
2. The player should follow the cursor if the right button is pressed.
3. You should click from a long distance on events. If You click on an event the eventID should be saved in a gameVariable (I tryied to put a condition into the "def check_event(x, y)" but it hadn't worked !)
Sry for my bad english :D and my low RGSS skills :D!
Here is the Script:
I found the script below while searching for a good mousescript. Its perfect for my game, but there are some things which have to be changed and i really don't know how...
1. The player shouldnt follow the curser if the left mous button is pressed. (I deleted line 156-161 and it worked but i'll post the full script here. )
2. The player should follow the cursor if the right button is pressed.
3. You should click from a long distance on events. If You click on an event the eventID should be saved in a gameVariable (I tryied to put a condition into the "def check_event(x, y)" but it hadn't worked !)
Sry for my bad english :D and my low RGSS skills :D!
Here is the Script:
Code:
#----------------------------------------------------------------------------
#Credits: This is an adaptation from a script created by shun ([url=http://simp.nobody.jp/]http://simp.nobody.jp/[/url])
#Also looked at Cybersam's work and Astro_mech and Mr.Mo's mouse script edits to
#learn how onmouse events work.
#----------------------------------------------------------------------------
# TO USE:
# In each map event, put the name of the cursor you want to show as a comment.
# The comment must be the first event command. Make sure that you put the cursor
# in your Icons directory (name in comment and icon name must match exactly)
#----------------------------------------------------------------------------
module Input
#--------------------------------------------------------------------------
# â—