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
Don’t forget to reset the NumberOfCoins variable in case you have game restart mechanic.
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 ?