How to change a number on HUD when I pick up an item in game

I’m just learning Blueprint, so I apologize for the rudimentary question, but I’ve been racking my brain on it for long enough at this point. I have coin actors around my level and a number displayed on my HUD. When my character overlaps with a coin I would like the counter on my HUD to increment by one. However, I do not know how to let the variable in my HUD blueprint that displays to know that my character has overlapped a coin. Any ideas?

First of all I would suggest to keep the variable which tracks your coins in either the character blueprint or a savegame as this makes it easier to access them.

Now you have your coin blueprint which should disappear when you overlap it. Right behind the destroy actor you then add wherever you want to save that value to. In your case the HUD variable Coins (though as I said I would change that).

in order to change that variable you have to get your HUD class, make the coin variable public (or add an function to increase it by a certain amount) and then modify or call it.

You could take a look in the “Content Examples” in the HUD example level. They have a health pickup which shows where and how far away the pickup is and a health bar which goes up once you touch the health pickup. This could show you exactly what you need.