Forum rules - please read before posting.

How to add tutorial text that dynamically changes based on the player's input device?

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,

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.

  • Input Manager's very limited in terms of what it can tell you - you can use Input.GetJoystickNames togl get details of what's plugged in, but not what was last used.

    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.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.