Questions tagged [time]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
2answers
141 views

Time.fixedDeltaTime & Time.deltaTime in Unity

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 ...
0
votes
1answer
21 views

How does time-dependent camera rotation with a mouse work?

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. ...
2
votes
1answer
910 views

How to correctly implement custom tick system?

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 ...
0
votes
1answer
50 views

How to apply Time.timeScale only to certain scripts?

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 ...
0
votes
1answer
35 views

I do not understand the code version of time based sprite animation?

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 ...
1
vote
0answers
77 views

Synchronizing clients

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. ...
0
votes
1answer
68 views

How to make score points based on time

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 &...
0
votes
1answer
31 views

Time-passed check with Pause functionality

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 ...
2
votes
3answers
106 views

Multiple events based on in-game timer?

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 ...
0
votes
1answer
76 views

Unity data sampling rate

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 ...
0
votes
1answer
466 views

Unity3D - Despite using Time.deltaTime, my camera and player move faster at higher framerates

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. ...
0
votes
1answer
41 views

Formula for calculating time difference regardless of speed

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 ...
0
votes
2answers
74 views

How to make a more accurate lap time? get_timer() LIMITATION?

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): ...