Skip to reading
Verbs & Mouse Cursors

8. Set the click point and pointer size

Edition 0.86.3.4

Create adventure commands, configure cursor artwork and hotspots, and connect mouse, GUI and parser input to the same interactions.

Download PDFView PDF page
On this page

About the fallback controls in this build#

The form exposes Fallback Symbol and Fallback Color, but the current desktop cursor path uses a valid image or returns to the operating-system pointer. Do not depend on a typed fallback symbol becoming a working desktop pointer.

For a dependable release, supply a usable image or deliberately choose the system cursor, then test that choice. This designer does not present a cursor-animation frame list; do not assume an animated GUI image setup automatically becomes an animated mouse cursor.

A cursor image has two things the player notices: the picture itself and the exact point that clicks. Those need to agree.

For an arrow, the click point is usually the sharp tip. For a crosshair, it is usually the centre. For a hand, it is usually the pointing fingertip.

Read hotspot coordinates#

Coordinates start at the image's top-left corner. X increases to the right; Y increases downward. They refer to the source image's pixels.

Source table from 8. Set the click point and pointer size, page 19
Source imageIntended click pointExample hotspot
24 x 24 arrow artwork used hereVisible tip at pixel 5, 3X 5; Y 3.
64 x 64 crosshairCentreX 32; Y 32.
Any hand imageIts actual fingertipMeasure that pixel in your image editor.

The crosshair row is a numerical example, not a cursor file you need to download. The workshop Arrow Pointer uses existing studio artwork with a tip at 5, 3.

Do not enter the object's screen coordinates or world position in these fields. The cursor hotspot does not resize a door's collider, the yellow selection bounds, the object's event volume or the walkable ground.

Test alignment on something small#

1. Start the game with the custom cursor enabled.

2. Select the verb using that pointer.

3. Move its visible tip onto a narrow, easily recognised part of a target.

4. Check when the hover name or feedback appears.

Page 19 of 44Permalink
Go to page