Skip to reading
Verbs & Mouse Cursors

10. Give an object hover and pressed cursors

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

2. A selected inventory item's icon, if its separate item-cursor setting is enabled.

3. The current verb's cursor, when Custom Cursor is enabled. A Change Game Cursor override affects this route.

4. The operating-system pointer if no usable custom image is supplied.

When the pointer is over ordinary GUI controls or outside the active game preview, the normal interface pointer can be restored. Move into the room when checking the selected verb's cursor.

A forced cursor does not necessarily beat an object's hover override or a selected inventory icon. Check the active route before changing the wrong record.

The inventory-item option is separate from Custom Cursor. Turning Custom Cursor off does not, by itself, promise to turn the selected-item icon route off too.

Inventory icons as pointers#

When an item is selected, its icon can be used as the pointer. That is useful for a key-on-door style interface. This route centres the hotspot on the item image rather than using an unrelated cursor record's hotspot.

It still needs the actual inventory interaction response on the target or item. Displaying a key beside the mouse does not automatically unlock a door.

Check the game, not only the form#

The form contains some compatibility-oriented controls. In particular, do not rely on Show Cursor Label creating a floating pointer caption in every display path. If your interface needs to tell the player the current command, add a GUI label with {command}, as shown in chapter 11.

An object can use pointer-feedback cursors independently of the selected command. This is useful when you want a target to signal that it is interactive, or to show a brief change during a press.

1. Create the cursor records you want to use.

2. Select the object in the Scene Designer.

3. Open Pointer Feedback in its inspector.

4. Choose Hover Cursor, Left Click Cursor or Right Click Cursor, as appropriate.

5. Apply Changes and Save Project.

6. Test entering, pressing, releasing and leaving the target.

Page 23 of 44Permalink
Go to page