You are currently viewing the GMLscripts.com static mirror. Forum access and script submissions are not available through this mirror.

Invert GMLscripts.com

jump_to_mouse

I know what you're thinking. This is a dumb script. At first I thought so, too. Well, let me tell you something. There is something to be said for abstraction using descriptive functions. That's why this script exists.

jump_to_mouse()
Moves the calling instance to the position of the mouse cursor.
COPY/// jump_to_mouse()
//
//  Moves the calling instance to the position of the mouse cursor.
//
/// GMLscripts.com/license
{
    x = mouse_x;
    y = mouse_y;
    return 0;
}

Contributors: bob

GitHub: View · Commits · Blame · Raw