Make a controls tutorial

Hi,

I want to make a short “controls tutorial” at the beginning of my short game.

Basically, I want to start the game with a widget telling the player how to move the camera (WASD) and then when they succesfully moved the camera around, the next widget pops up showing the player how to select a person in the game (left mouse button). When they did that succesfully the last widget pops up showing the player how to move this character around (right mouse button).

I have already made these widgets but don’t know how to get the next widget to show once the player uses the right controls.

Do any of you maybe have some advice as to how to do this?

You can check for key presses by using the Any Key event and then using == to determine what the key pressed was. This is simple to check raw input but if you are using Input Actions (or enhanced input actions) then you’d want to check for the action event.

Depending on the context of the game though, you might be able check in other ways. Special triggers that dispatch an event the widget system can listen for. For instance, you make a trigger box actor and they have instance editable string. Then you can switch on string so that you know when the “Player walked far enough forward” event happened.