(I'm spanish so sorry if a make mistakes while writing this)
Well, I just run into a problem while making HUD that shows the amount of coins you have collected
The problem I have is that the number showed doesn't increase by 1 per coin (what I've ordered to), it increases by the amount of coins left in the scene (for example, if there are 15 coins in the scene, when I collect the first one, the HUD will increase by 15; with the next one, it will increase by 14 and so on)
These are some photos about the code I use for it. The first one is from the "Coins HUD" Actor. The second one is the code attached to the "Coin" actor. The last one is from the main scene.
If you need more information to solve my question, I would provide it gladly
Thank you
P.D.: "Monedas" means "Coins" in Spanish. I hope you don't need to use a translator
I speak Spanish too, so I will explain it in Spanish.
Tu código se activa cuando "el jugador" toca "una moneda", pero ese código lo tienen todas las monedas. Entonces cuando el jugador toca una moneda, las 15 monedas se activan porque "el jugador" tocó "una moneda". Lo que tienes que hacer es cambiar el evento "el jugador" toca "una moneda" por el evento cuando "tú" tocas "al jugador"
Donde dice "Actor" eliges "Self", que se refiere solo a la moneda que toca el jugador y no todas a la vez, y donde dice "Actor Type" eliges Jugador. El comando Kill, lo puedes dejar en Kill "Self" o Kill "1st actor", ambos se refieren a la moneda misma.