Block code help: fixing a timer glitch

I’m trying to make a timer that shows the minutes and seconds you’ve been playing, and I read several guides on it, but I had this glitch. Any idea how to fix it?
image
image
image

@Epi320

1 Like

if u round down…
hmm, ok, can u explain

  1. why is it called taco?
  2. why you round down (if it is 12, then divide by 60 = 0.2 0.2 round down is 0
1 Like

oh, also the second ss is just floating point problem

1 Like

floating point is basically when the computer does division, it kinda breaks.
there really isn’t a possible solution to this, because it is hard wired into the system.
lemme make you a better timer.

2 Likes

It just counts the minutes. That works. It’s the seconds I’m having a problem with.

Uhh… because taco. :taco: I’m referencing this:

I DID IT!!
lemme upload ss

its super simple

1 Like

I’m not an expert on this, so all I’d say is try going back through the guide and checkng your work- this usually works for me lol.
Epi is going to have an actual solution though :sweat_smile:

1 Like

image

simple

1 Like

You already have 23 solutions. :rofl:

Okay, lets see if it works!! :star_struck: Gimmie 1 sec.

Uhh, @Epi320… what’s this??
image
I did this, but idk. :sweat_smile:
Screenshot 2024-11-25 4.49.48 PM

It did what mine did, but it doesn’t show the minutes count below 1 minute. Or above 1 minute. :(
image

Also, I just remembered how I know you. :laughing: Weren’t you in that California org? :palm_tree:

ok, easy, just add a trigger that triggers ONCE
and lifecyle
On game start → set (property) to zero.
Then, redo the code like this
image

1 Like

I am???
wait… what calafornia org?
oohh that thing. no I wasn’t in it.
BACK ON TOPIC

does this work?

1 Like

never mind, you don’t need the:

just make a property with defaullt value 0

image
new code

old one doesn’t work

Okay, I already had this. Gimmie 1 sec to try to fix the code.

🌴

Oh, okay! It must’ve been someone with a similar name. I’m off Padlet now, so I don’t remember much about who was on there. lol

1 Like

shoot
image
lemme fix it. (small bug, already know where I got it wrong)

1 Like

Yeah, I was about to say. I just did this, but idk. lol
image
Ahh, this is driving me insane! Gimkit should just make a stopwatch device or something. lol

image
BOOM
done it. should work

1 Like

Ahhhhhhhhhhhhhhhhhhhh! :scream: That’s long! Lemme try that. :P