I am trying to have a score that adds 1 each time an enemy dies
here is the code:
the ( SCORE: ) is showing with a 0 next to it but when an enemy dies it is not adding 1
I am trying to have a score that adds 1 each time an enemy dies
here is the code:
the ( SCORE: ) is showing with a 0 next to it but when an enemy dies it is not adding 1
You don’t need to write +1, 1 is enough.
You need Trigger once, otherwise it will automatically increase forever.
But both are not the problem, I think your enemy doesn’t die.
How do you do it?
I manage to solve it.
i had a duplicate of the condition when enemy is dead, so i added the globalvariable “1” to to the previous one and it solved the problem.
still learning how to organize everything.