How to add "credits" (like arcade game) whenever insert coin is pressed?

I would suggest using an Event Dispatcher to broadcast whenever you change the Coin Counter Variable, so that the widget can bind to that and update the Text. This would be more efficient than using widget binding.

  1. Create an Event Dispatcher in ThirdPersonCharacter called something like OnCoinCounterUpdated
    image

  2. Select the newly created Event Dispatcher and add an Input to it called CoinCounter and set the type to Integer.

  3. Compile the blueprint, after you increment CoinCounter on Insert Coin Event, also call OnCoinCounterUpdated. Compile again.

  4. In your widget’s Event Construct, do Get Player Pawn → Cast to ThirdPersonCharacter

  5. Drag from as Third Person Character and search for Bind OnCoinCounterUpdated and add it the graph.

  6. drag from the Red Event pin on the Bind Node and do Create Event, hit enter and call it something like “Event_OnCoinCounterUpdated”

  7. from that event use the Coin Counter variable to update the Text.

This way, you only update the widget when the Coin Counter variable changes instead of doing it every frame.