How do I make a stopwatch?


#1

Hi, I have a game and use hopscotch to code it, but I am making in game time and need help on how to make a stopwatch like thing. Can y'all tell me how?


How do you make a stopwatch?
#2

I'll tell you in a few minutes. :smiley:


#3

Hi if u are on I'll tell u !!!!
Btw welcome to HF I'm @Hermione tag me when needed!
Wanna be frens


#4

Here is a semi accurate stopwatch. In a new project, it'd be 100% correct.


Make sure you copy the code exactly.


#5

@Petrichor wouldn't this be simpler?


#6

Yes, but mine is possibly more accurate. And easier/quicker to make. :smiley:


#7

I will measure the accuracy of both projects.


#8

Your method seems very accurate. Mine fell behind by one second after a while. Thanks for sharing, I will use it in my next project :smiley:


#9

Hehe. Yes, but you need an FPS counter to make it 100% accurate all the time.
(I am so glad @Rawrbear informed me he default FPS is 60)


#10

Read this for more info! ^


#11

You can check my profile "William04GamerA". I have made a stopwatch, but it does not work in the new HS version. In the old iOS 7 version that I coded it in, it works fine. But it doesn´t work in the new HS version. However, it is still a great source for design inspiration :slight_smile: