#game time

42 messages · Page 1 of 1 (latest)

rare lodge
#

How do u make your game 15 min long

heady cargo
# rare lodge How do u make your game 15 min long

Create a Float Variable, rename this to Game Timer, configure it to be synced

When the game started, set Game Timer to 900 (900 seconds = 15 minutes)

At 30hz, if the game is started, ask if the local player is the room authority
If the local player is the room authority, have them set Game Timer to Game Timer - 30hz_Delta_Time. This will decrease the variable by 1 every second (smoothly, so in half a second, it decreases by 0.5)

After setting Game Timer to Game Timer - 30hz_Delta_Time, check if Game Timer is less or equal to 0
If Game Timer is less or equal to 0, end the game
If Game Timer is not less or equal to 0, dont end the game

rare lodge
#

The blue thing to 900??

heady cargo
#

900 seconds = 15 minutes

#

I already said that

rare lodge
#

I got confused after the synced part

#

Do. I set the floor value 900

#

Float*

#

Can u exsplane step bye step

heady cargo
rare lodge
#

Sorry

heady cargo
#

"Game Timer" refers to the float variable, I told you I named it "Game Timer"

#

so anywhere you see "Game Timer" in my explanation, it means the float variable

rare lodge
#

That's as far as I got

#

I'm sorry for being a idiot

#

I'm stuck at the 30hz part

#

I give up I'm just annoying u trying to figure this out

heady cargo
rare lodge
#

And how do the room. AUTHORITY thong

heady cargo
rare lodge
#

Okihave the chips what do I do now

#

What anout if the game is started

#

Part

heady cargo
#

however your game works

rare lodge
#

How do I connect the hz and Delta time

#

Can u just make this a invention I'm too idiotic to figure😭 it out or join me and do it

#

If u can do it for me my user name is Jordanweir33

#

?

rare lodge
#

??!!?!!!!!???????

mild yacht
round musk
#

Couldn't you just do an "Int Clock" since it's a whole number? I mean, it would take no idle CPU nor Net.

rare lodge
#

What's the thing not wired to anything

mild yacht
rare lodge
#

I'm using alot

mild yacht
rare lodge
#

Yea

obtuse pasture
#

Just makes it so 1 = 1 second and not a bunch of CV2 ticks

round musk
#

"Int Clock" would need no tick or update stuff? nvm read your thing wrong

rare lodge
#

@mild yacht so this will make it 15 mins