X Tutup

PROGRESSIVE MOUSE SYSTEM

RPG Maker VX Ace

An RPG Maker VX Ace script allowing advanced usage of the mouse.

Summary
This script allows you to use your mouse cursor to control RPG Maker VX Ace, with advanced scripting APIs available.
GitHub repository

Usage
x, y = $mouse.get_mouse_pos

Returns the mouse position from the OS

x, y = $mouse.get_mouse_pos_passive
Returns the rendered mouse position (updates every frame)

is_within = $mouse.mouse_within_rect?(rect)
Returns true if the mouse is within the rect

is_down = $mouse.left_button_down?(allow_repeat = false)
is_down = $mouse.right_button_down?(allow_repeat = false)
is_down = $mouse.middle_button_down?(allow_repeat = false)
Returns true if the mouse button is down
If allow_repeat is false then the method will only return true once
until the mouse button is unpressed

is_disabled = $mouse.disabled?
Returns true if the mouse is not currently active

$mouse.set_mouse_enabled(enabled = !@is_enabled)
Toggles the mouse

is_triggered_from_afar = $mouse.event_triggered_from_afar?
Returns true if the last started event was triggered from afar


Terms of Use
MIT License

Footnote
I made this script in 2022, but I recently made some improvements so I decided to post it here.
X Tutup