- Home /
Question by
Frieder_Mueller · Apr 25, 2018 at 04:10 PM ·
timetimescalefaster
How can i make my game go faster every 3 seconds? (Im not a Bot please answer me)
I know how to do some magic with Time.timescale but i have no idea how to go faster every three seconds please help me!
Comment
Best Answer
Answer by Hellium · Apr 25, 2018 at 04:48 PM
And what have you tried so far?
public float interval = 3 ;
public float increment = 1 ;
IEnumerator Start()
{
WaitForSecondsRealtime wait = new WaitForSecondsRealtime( interval );
while( true )
{
yield return wait ;
Time.timeScale += increment ;
}
}
I tried to make it like this but that did just crash the game Void Start { StartCouroutine("Name")}
IEnumerator Name() { yield return new Waitforseconds(3); VoidName(); } void VoidName { Time.timeScale += 0.1; StartCouroutine("Name"); }
Your answer
Follow this Question
Related Questions
Slowly making the player go faster. 0 Answers
Javascript Timescale Problem 0 Answers
Can i ignore timescale when playing AudioSource.PlayClipAtPoint ? 1 Answer
'timeScale' is not a member of 'Time' 1 Answer
Game over scene when the time is up ? 2 Answers