Quantcast
Channel: Answers by "Peter G"
Viewing all articles
Browse latest Browse all 90

Answer by Peter G

$
0
0
I would do something like this: var scoreMultiplier = 5; function Start () { InvokeRepeating( "DecreaseMultiplier", 30 , 30); //You could easily set this up as a coroutine if you wanted variable times. } function DecreaseMultiplier () { scoreMultiplier--; //Possibly clamp at 1pt. } function OnCollisionEnter () { score += scoreMultiplier; //basically the same as yours, just with a variable. }

Viewing all articles
Browse latest Browse all 90


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>