How to change text displaying button names after it's already displayed?
Posted: Wed May 31, 2023 2:51 pm
Hi, I'm starting to make some Tutorial/Controls instructions with Dialogue System and I've got a couple questions.
1) I want to have a dialogue that says either "Use WASD to run" or "Move the left stick to run" depending on if the player is on a controller or a keyboard. I detect this by seeing if the last player input came from a keyboard or a controller. BUT if the player presses a different input WHILE the dialogue is showing (ex. the've been using a controller, dialogue says "Use WASD to run", but then they press a keyboard key), I want the text to update to show the tutorial text that's relevant for a keyboard. What's the best way to do that?
2) I also want to pop up a prefab of a controls diagram I made. Not an in-line icon, but a separate controls diagram that I would show above the dialog box. And it would be a separate diagram for keyboard or controller. Is there a way to do that?
Thanks for your help!!
1) I want to have a dialogue that says either "Use WASD to run" or "Move the left stick to run" depending on if the player is on a controller or a keyboard. I detect this by seeing if the last player input came from a keyboard or a controller. BUT if the player presses a different input WHILE the dialogue is showing (ex. the've been using a controller, dialogue says "Use WASD to run", but then they press a keyboard key), I want the text to update to show the tutorial text that's relevant for a keyboard. What's the best way to do that?
2) I also want to pop up a prefab of a controls diagram I made. Not an in-line icon, but a separate controls diagram that I would show above the dialog box. And it would be a separate diagram for keyboard or controller. Is there a way to do that?
Thanks for your help!!