Best way to do button prompt tutorials?

Hello! I want to add tutorials like these to my project:

image

What I’ve done on my own so far have been collision boxes that cast to the HUD, get the keys assigned to the set action and they’re removed from the HUD once the correct keys are pressed, but is there other ways you guys can recommend?

First decide how you want distinguish one trigger point from another:

  • enumerators (enums) - easiest but bot flexible method, best if you have max 20-30 values
  • game tags - best hierarchical you can define them either in ini file or in project settings (kind of enums on steroids)
  • just integer - best freedom, simplest, but you need to keep some track ow what value represents what (int is just enum that has no attached readable value)

Then you make actor with trigger volume, when player enters it send event and when leaves send another event.

How to send event:

  • decide where you process events, best would be player controller, or player hud (if you have custom hud blueprint).
  • in blueprint of your choosing (lets say is BP_HUD) make dispatcher: DISPATCHER_TUT_Trigger with one value ) PlayerEnter
  • Then create event: EVENT_TUT_Trigger in BP_HUD that just calls (triggers) dispatcher
  • when player enters volume in trigger actor, cast to BP_HUD and call that event EVENT_TUT_Trigger
  • and when player exits that also but with false as parameter this time

And all of your widgets should assign to that dispatcher in BP_HUD (DISPATCHER_TUT_Trigger )

so communication should be like this:
player enters trigger >> trigger actor calls EVENT_TUT_Trigger in BP_HUD >> That event triggers DISPATCHER_TUT_Trigger >> all widgets that are hooked to dispatcher know player entered.

Same for exiting or doing task in tutorial.

When this works decide how to communicate more, like which trigger it is, state of tutorial etc.