make a coin stats

Hello hello ! I’m actually trying to learn level design from " hours of code " which helped me quite a lot
I’m learning now for the blueprints and currently there’s one thing I would like to do
The lesson learn how to make a counter for collectibles so now in my project, when I get a coin, it’s added in my counter which is fine !
but what I want to do, is that I want the counter to also show how many coins there is in the current level, to give the player a sensation of 100%, secrets and exploration ( I want my hud to do something like " Coin : 0/41 " and when it grab one, it does " Coin : 1/41 ", etc. . . )

if someone can teach me or show me all the blueprints to do, I would be thankful ^^
bye !

Just create integer in your Game Mode/State (depending if your game is offline, or online) named NumberOfCoins. Then, when coin is spawned, in it’s BeginPlay method increment that integer in Game Mode/State.

Then in your UI, just read integer value from Game Mode/State, and you should be good to go :slight_smile:

Don’t forget to reset the NumberOfCoins variable in case you have game restart mechanic.

I’m a beginner so everything you said look a tad complicated to me sorry :confounded:

You did not show how this is done, so we must assume things. You could try something along the lines of:

Call that Custom Event when the player collects a coin.

ok, I will check that on my turn, may I know what in the blueprint add the total of coins in the level ?

this is how the Hud with the coin and gems appear

I dunno where nor how to add anything because I’m a real beginner into this

to keep it further on how beginner I am, I don’t even know which blueprint or where I should make this setting

is it the hud where the text appear ?
is it the level blueprint like an event ?
is it the coin blueprint where the collision and the code of collectible is already made ?

I don’t know at all