-2

I used a code to make my game get faster the longer the game lasted but the problem I faced there was that the actual screen got faster rather than the player and blocks it jumps on and eventually the player would no longer be in the screen.

Is there a way I can accelerate the game over time through the player's gravity scale and platforms public float named "Jump force"

derHugo
  • 83,094
  • 9
  • 75
  • 115
Cem Ozsoy
  • 49
  • 1
  • 6

1 Answers1

0

i think you should take a look at Time.Timescale, here's the link. this is most likely a easy fix if you're trying to do what i think you're trying to do.

https://docs.unity3d.com/ScriptReference/Time-timeScale.html

you can just increase or decrease this variable according to the actions you're giving as a example.

Max Prakken
  • 21
  • 1
  • 2