#Need Help in Making an In-Game Time System
1 messages · Page 1 of 1 (latest)
Like a counting how much minutes hours?
Use event receiver update 30hz -> delay after delay(make sure it’s 60) -> delay cancel -> Int variable -> add 1
And then for the display
int variable -> To string -> Sting format name format (playtime: {0}) bring a player show subtitle connect the string format to the string inside the subtitle and the int variable the first one to the execution to the subtitle
@manic laurel if u need further advanced one @ me I can join and do it for you if u want
Nope that’s not the best way for many reasons
It’s
cpu expensive
unnecessary
and not really accurate
The best way imo is making a float variable and adding the delta time to it constantly at 30hz
Then you’ll have the amount of seconds the player has spent in the map and you can format it as you want
@golden geode @manic laurel
U meant 30hz float and add?
Yes you add the delta time to your float variable
And if u want to format it into hours u use divide into 60?
And minutes modules it to 30?
that would be minutes not hours
?
it’s seconds so
Divide by 60 to get minutes
Divide by 3600 to get hours
Divide by 86400 to get days
Am getting confused
uh
The delta time gose every second?
Yes accurately
So why we need to divide it into 60 if it’s already giving seconds
You can format it as you want
It’s currently just a variable that stores how many seconds a player has spent
You’re welcome
alr so how would i do this?
That’s so cute bucket man lmao
@manic laurel I would prefer @wispy tinsel method since it’s accurate and less cpu and less chips
k
And if u need help installing it I can do it for u if rayan can’t
There
And if we use the to string into the float?
thats all?
That’s going to be the amount of seconds for each player
You can format them to minutes hours days whatever you want
You’ll probably find plenty of ways to format them in the internet or in a help thread
If you want the amount of seconds to be saved even if they leave and rejoin
Configure the float variable and set it to cloud