Hi, you need to store the coins count variable somewhere else, cause the coin gets destroyed after you collect it and you loose the coin count, GameMode would be a good choise, so you create this coins count variable there and when coin gets picked up you’d cast to GameMode and update the countVariable.
So here’s what you need to do:
1- Create a MyGameModeBP (blueprint) if you haven’t yet , (choose MyGameMode class as parent).
2- In MyGameModeBP create a variable integer CoinsCount.
3- In your CoinPickupBP add these nodes and it should do the job:
I would then also suggest this video to give you a good understanding how the UE4 is setup.
Good Luck
