Skip to main content

Questions tagged [time]

Filter by
Sorted by
Tagged with
0 votes
1 answer
101 views

I am using unity as my game development platform. I was trying to create script that could interpolate time scale to achieve a flurry rush. The code below is my attempt: ...
pockspocky's user avatar
2 votes
2 answers
175 views

In Unity, I have a Spline that I'm using to move an object. During the game, the player can add new knots to this Spline as the object moves forward. e.g if they want the object to go right, they can ...
kyopa's user avatar
  • 143
0 votes
0 answers
91 views

In Unity 2022.3.12f1, I made a metronome. Here is a minimal working example: ...
jules's user avatar
  • 1
0 votes
0 answers
121 views

As an example of the behaviour I want to implement in my game, look at Bloons TD 5 on the PS4/PS5 and its Daily Chest Reward. If you disconnect the internet and change the date and time and play the ...
CodeCamper's user avatar
1 vote
1 answer
381 views

My player is able to dive for a limited amount of seconds (let's say 10 seconds) while swimming. When he's not diving his breath gauge fills up again to a max of 10 seconds: ...
Tomo's user avatar
  • 133
0 votes
3 answers
533 views

My problem: I am using a coroutine to add a typewriter effect to my texts, but the delay (using yield return new WaitForSeconds();) isn't consistent on different ...
DemonicTree's user avatar
0 votes
1 answer
126 views

Regardless if you know how Roblox works or if you know Lua syntax, I just need an algorithm/equation here. Currently, at the start of each server, I reference the seconds of a centralized clock since ...
Brycki's user avatar
  • 1
0 votes
2 answers
878 views

A few days ago I first used the new input system of unity for my game and I ran into a problem. So basically I cant seem to figure out how to implement cooldown in the new system. Either it just ...
Hammynator's user avatar
0 votes
1 answer
170 views

I'm working on a game in which the season is particularly important to the player, along with sunlight. It progresses from early spring to late fall. I have a very basic day/night cycle system working,...
Michael Macha's user avatar
0 votes
0 answers
52 views

I'm trying to develop my first ever browser-based multiplayer game that utilizes my own websocket server which has no multi-threading capability. It will be a game where players try to be the fastest ...
Decent Dabbler's user avatar
0 votes
1 answer
510 views

So using what I found on my other question, I wrote this code: ...
Arian_ki's user avatar
  • 691
0 votes
0 answers
178 views

I am struggling to find a solution on how to skip frames and keep the game at a constant pace, I had tried using ...
AidanGamin's user avatar
0 votes
2 answers
6k views

The old Unity 5.3 documentation said: Time.fixedDeltaTime The interval in seconds at which physics and other fixed frame rate updates (like MonoBehaviour's FixedUpdate) are performed. For reading the ...
Serg's user avatar
  • 393
0 votes
1 answer
236 views

The commonly used equation for camera rotation with a mouse does not involve time. This make sense since higher frame rates have smaller changes in mouse position and vise-versa so it all evens out. ...
ddxm's user avatar
  • 3
6 votes
1 answer
8k views

I am making a custom tick system to suit my needs (calling normal ticks every 0.2 seconds, medium ticks every 5 seconds etc...) I followed the tutorial in this video: CodeMonkey tick system tutorial ...
caleidon's user avatar
  • 591
0 votes
1 answer
2k views

I have a need to pause my game and the simplest and most clean way that I know of (other than completely designing my own time system) is by using ...
caleidon's user avatar
  • 591
-1 votes
1 answer
124 views

I'm Universo and for the longest time had coding issues around the concept of time-based sprite animation basically, do not know how to implement it and any code or explanation simple or complex that ...
Dominic Hughes's user avatar
0 votes
0 answers
179 views

I have a server-client setup where each client has a number of screens attached, and the screens together form the display. As such, the visuals displayed by each client needs to be roughly in sync. ...
user avatar
0 votes
1 answer
2k views

So the idea is simple. a) Players why finish the level faster, should get higher score. b) The levels (1 to N) where every next becomes more difficult should impact the score. So it's kind of mix of &...
Janis Taranda's user avatar
0 votes
1 answer
167 views

I am working on a game that has a lot of time-passed checks of the following format. These work great, but there is a problem when the game is paused: If paused for any meaningful amount of time, the ...
Ben's user avatar
  • 517
2 votes
3 answers
291 views

I've been thinking about how Zelda: Majora's Mask manages all its character events during the day and thinking about the best way to implement this. Initially I thought of each character entity ...
Forumpy's user avatar
  • 121
0 votes
1 answer
332 views

I'm using the Unity as a physic simulation and I want to gather the data of object position from it. So I put my code about random the force and apply to that object. Also the part that Write the data ...
Puntawat Ponglertnapakorn's user avatar
0 votes
1 answer
2k views

I'm pretty new to c# and Unity so I wouldn't be surprised if I had made some stupid mistakes, but as far as I know, I don't think I misused Time.deltaTime. Any help would be greatly appreciated. ...
BasedSoup's user avatar
0 votes
1 answer
123 views

See the following situation: The first car has a speed of 10 pixels per second and completes one lap in a circuit in 84 seconds. I want the ...
Boneco Sinforoso's user avatar
0 votes
2 answers
197 views

In the room there are 22 cars. All cars have a different speed. The cars are numbered from 1 to 22 with the help of the variable carNumber. CODE - obj_Car / Set car speed (Create Event): ...
Boneco Sinforoso's user avatar