Kieran's profile picture

Published by

published
updated

Category: Games

Racer Prototype: DEV LOG 3 adding a scoring system

01/05/25

Hello! So after a lot of trial and error i finally have some kind of scoring system!! Its still pretty buggy but im a little proud of myself for being able to at least implement this. 

So to begin with, i had to first implement the scoring timer at the beginning of the level in order for it to start as soon as the player opens the scene. 

After this, my coding gets a little buggy but bare with me here. 

so what i have done is that every 0.1 seconds, a variable i made and labeled "score" will increase by 1. After that, a text sprite will change depending on the value found on the "score" variable. After that the sequence will reset after 0.1 seconds. The result in game looks like this: 

No, the gif isn't laggy, that is just how it looks in the game. I'm pretty sure this is caused by the sequence waiting for 0.1 seconds before looping. However, when i remove that "wait 0.1 seconds" the scoring system completely bugs out and increases rapidly. So until i figure out how to fix this and polish the feature, i think ill leave it like this and focus on my other tasks for this prototype.
Anyways, Kieran signing out!


0 Kudos

Comments

Comments disabled.