Click.lua

Download click.lua

A small library for the cursor. You can find its coordinates in the scene, find the speed's cursor, or set an image cursor.

Installation
Place the file click.lua into the LuaScriptsLib folder.

How to Use
To enable the click.lua, add this line to lunadll.lua: This will load the API.

Examples
This example will: 1) Spawn a goomba where the cursor is placed when the mouse is clicked. 2) Show the cursor for 15 frames when the mouse is clicked. 3) Have the timer near the cursor showing how long until the cursor disappears.

This example will: 1) Spawn a goomba when holding the mouse in a box near the player 2) Show a counter of the amount of frames 'click.sqrScene' returned true