Skip to main content

Questions tagged [time]

The tag has no usage guidance.

2 votes
2 answers
43 views

How to ensure smooth animation when making spline longer?

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
  • 133
0 votes
0 answers
38 views

custom metronome is not consistent

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

How to detect when console system time was changed since the game was last run, without a net connection?

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
158 views

How to pause or slow down/speed up Time.deltaTime when it is inside the Update() method?

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
0 answers
26 views

How to use elapsed time to code a function to manipulate DOM

I'm a new software engineering student. I have a problem that I can't seem to get my head around. I am currently making a basic rhythm game like Guitar Hero using HTML, CSS, and JavaScript. I managed ...
8bitNostalgia's user avatar
0 votes
0 answers
51 views

How to add keyframe gaps on timeline animation window?

I'm using Unity timeline windows to create a building animation. I have a building model with many parts for example every floor has own parent and 200 child objects. In this parent as you can see I ...
ilhan keskin's user avatar
0 votes
3 answers
342 views

Coroutine delay isn't consistent on different framerates

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 ...
Felix193's user avatar
0 votes
1 answer
67 views

Synchronizing in-game clock vs real world clocks across servers started at different times

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
567 views

Cooldown in the new input system of unity

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
95 views

How can I change the default dawn and dusk times in Unity?

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
34 views

Signalling time-expiry to clients in a browser-based multiplayer game

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
414 views

AnimatorUpdateMode.UnscaledTime not working

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

frameskipping in Pygame?

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
5k 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 ...
Serg's user avatar
  • 383
0 votes
1 answer
160 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. ...
ddxm's user avatar
  • 3

15 30 50 per page