Skip to reading
Images, Carousels & Choice Controls

8. Give an image a gameplay action

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 PDF page

State images work without a gameplay event. Add an event only when the picture should do something, such as inspect a clue, open a GUI or run a script.

1. Create a String variable named image_feedback.

2. Select inspect_image and open Events. Set Click to Set Variable.

3. Choose image_feedback and enter a short response as its value.

4. Add a normal Label whose Text is $$image_feedback.

5. Run the game and click the image. Check the Label changes.

The event list also includes Hover, Double Click, Right Click and Double Right Click, with action-list operations available alongside the basic behaviors. Use the event that matches the player’s intended interaction.

A Hover event can run whenever the pointer enters. It is a poor place for an unguarded one-time item reward or a long conversation. Keep hover feedback lightweight, or use a story variable to prevent repeated work.

Source table from 8. Give an image a gameplay action, page 14
GoalUseful action
Open an inspection windowShow GUI or an Action List that opens the desired GUI.
Run custom logicrun-visual-script with the script ID in Click Target, or the shared script-running action.
Change the displayed pictureChange GUI Element Property → assetId.
Disable an interactive imageDisable GUI Element.

An image with click artwork can still be decorative. To make it consume a room click deliberately, assign the intended Click behavior and test it in the running game.

Page 14 of 52Permalink
Go to page