8. Give an image a gameplay action
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.
| Goal | Useful action |
|---|---|
| Open an inspection window | Show GUI or an Action List that opens the desired GUI. |
| Run custom logic | run-visual-script with the script ID in Click Target, or the shared script-running action. |
| Change the displayed picture | Change GUI Element Property → assetId. |
| Disable an interactive image | Disable 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.
