Skip to reading
Eight Adventure Interface Workshops

Set up the five cursor actions

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView illustrations

Figure 22. A cursor definition has an image and a hotspot; a verb selects the appropriate cursor.

1. Keep the enabled cycling set to Walk, Look, Pick up, Talk and Use. Disable unrelated verbs in this project so cycling does not visit fifteen unwanted actions.

2. In Project Settings, choose Cycling Cursors. In the runtime-controls settings, keep the control system and cursor cycling enabled.

3. Create a cursor record for each action. Assign an imported pointer image and set its hotspot.

4. Assign each cursor record to its matching verb, then enable custom cursors in Global Settings.

5. Run Play. Right-click with no inventory item selected to cycle, then left-click a target to execute the displayed action.

6. Test clearing a selected inventory item too; selected-item cancellation and cursor cycling should not compete.

PCA’s ordinary hardware cursor record is a static image. Do not assume a GUI Image’s FPS field also animates the operating-system pointer. Multi-frame hotspot cursor movies need a dedicated pointer implementation.

Page 43 of 119Permalink
Go to page