Hey all,
I want to add tutorial text that dynamically updates based on the player's input device (keyboard or controller). It’s a short tutorial popup that instructs the player to press [XX] to toggle the flashlight and [XX] to open the inventory.
Thanks,
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
You can use Variable tokens to insert dynamic content into text boxes.
[var:0], for example, will show the value of Global Variable "0".
If this variable is a String, you can set this value - using Variable: Set or a custom script - and it will update in the Menu.
How you set this string value, however, depends on your input handler. Are you using Input Manager, or the newer Input System along with AC's integration for it over on the Downloads page?
I'm using the old Input Manager.
Inout System is better at these details.
What if I create two separate tutorial menus—one for the keyboard and one for the controller—and use a custom script to automatically detect the connected input device?
It's certainly worth trying. A custom script can read the input device, but the issue is more down to detecting whether the user used it or the keyboard.