Need Help Making Score Counter

Peace Unto You! I’m new to game development. I’ve been developing this game for 5 days and made soooo much progress, but for what ever reason the hardest thing for me is adding a score counter and when a enemy death animation plays the score increases by 1.

I have the score gui on the screen when I run the game, but it just doesn’t update. I’ve gotten to the point where I’m asking ChatGPT what I’m doing wrong and from what I can tell all the code is in the right places. I think there’s something I’m “TECHNICALLY” not doing right, cause all the pieces are set.

May someone PLEASE help me!

I need helping writing the code. ChatGPT makes it look so simple lolll but the score is not updating

Thank you, we are very grateful

1 Like

Please never ever trust the stupid AI stuff. Do your own research and try to learn the basics. They are helpful but only when you know what you are doing and what to expect from it. If you are just copy-paste stuff you are going to fail.

It is not possible for us to help you without any code samples. Please read this first:

I bet you can find the solution by searching and spending some time on this forum first.

3 Likes

I made a video tutorial about a space shooter, where I have a counter, it could be good to check out:

Here are tutorials on making a score screen too:

2 Likes

@Nadiie_Black as you can see there are plenty of resources available.

Yes, it really depends on what you want to have, but basic tutorials are good to start and when you grasp the ideas, you can suit it to your needs in whatever way you want :wink:

And I agree that ChatGPT and generative AI is very bad, especially for beginners. It’s misleading and misinformed, yet behave like it’s an expert and tries to make everything look simple, by simplifying to the degree that it’s not doable by only following the given instructions.

It takes effort to learn stuff, sadly :smiley:

YAAAAAAAAAAAAY YOUR TUTORIAL WORKED!!!

But now I have another issue. I only need the score counter to increase when the enemy is defeated by the player.

After I implemented your fix, I indeed have the score counter increasing when an enemy dies, but after an enemy attack, they die, and it still counts.

I need it to where the score only increases if the enemy dies from being tapped

Update: NVM I FIGURED IT OUT YAAAAAAAAY

1 Like

Glad it helped and congratulations on making it work on your own! :partying_face: