Creating a score system that goes up when an enemy is killed.

Hello Im trying to make a tower defence game. I would like to know how to add points after an enemy is killed. Wether it is for kills or currency. Ive tried to do a pring string that increases with an increment after the enemy is destroyed but it always displays as 0 or 1. Any help would be much appreciated.

Hey @LiamRace27! Welcome back!

So you will need to set the value after it goes up, then add to that saved variable.

Try the bottom one if the top doesn’t work! :slight_smile:

Let us know how it goes, and don’t be afraid to ask any questions at all!

1 Like

Thankyou for the response, I managed to fix the issue. It turns out I hadn’t set my game mode in the project settings to the one I created to handle the kill count. I spent hours looking for a solution when it was that simple. You live and learn I guess!

2 Likes