Click

Description: You made a script? Submit it here to show your creation to the public, share, take reviews, provision of the help and support is here!
Moderators: Lx Xzit, Yoshi021, 5438A38A, Semi-moderatos, Moderators

Yoshi021 M
Topic author, Moderator
Moderator
Avatar
Yoshi021 M
Topic author, Moderator
Moderator
Age: 22
Reputation: 170
Posts: 693
Joined: 15 Feb 2016
Location: Yoshi's Island

Post #1by Yoshi021 » 2 Feb 2017, 4:01

Hello, today I present to you CLICK.vbs. This script will give you values about the mouse and the cursor.

LEFT CLICK
  • clLClick = Returns -1 for the first frame the left mouse was clicked.
  • clLHold = Returns -1 when the left mouse is held.
  • clLRelease = Returns -1 for the first frame the left mouse was released.

RIGHT CLICK
  • clRClick = Returns -1 for the first frame the right mouse was clicked.
  • clRHold = Returns -1 when the right mouse is held.
  • clRRelease = Returns -1 for the first frame the right mouse was released.

Coordinate and Movement
  • clX = The x coordinate of the cursor relative to the screen.
  • clY = The y coordinate of the cursor relative to the screen.
  • clXs = The x coordinate of the cursor relative to the scene.
  • clYs = The y coordinate of the cursor relative to the scene.
  • clXsp = The x-speed of the cursor. (Negative values are left, and positive values are right)
  • clYsp = The Y-speed of the cursor. (Negative values are up, and positive values are down)
  • clHsp= The hypotenuse the cursor makes when it moves.

You can also make your own cursor. Change the numbers at the beginning of the scripts to customize the cursor image.
Set "clShow" to -1 to show the cursor, set to 0 to hide the cursor.

To use the script, make sure that the script starts on level-start.
DOWNLOAD
Links
ImageImageImage
Image
Image
"Going to University is FUN!" :pardon:

Yoshi021 M
Topic author, Moderator
Moderator
Avatar
Yoshi021 M
Topic author, Moderator
Moderator
Age: 22
Reputation: 170
Posts: 693
Joined: 15 Feb 2016
Location: Yoshi's Island

Post #2by Yoshi021 » 14 Dec 2019, 7:13

Updated click to v1.3!
Links
ImageImageImage
Image
Image
"Going to University is FUN!" :pardon:


Return to “Script submission”

Who is online (over the past 5 minutes)

Users browsing this forum: 1 guest