Quantcast
Channel: Answers by "Graham-Dunnett"
Viewing all articles
Browse latest Browse all 959

Answer by Graham Dunnett

$
0
0
Add after line 114: if (deposited >= winScore) timeleft = 0; Now, when orbs are deposit and `Deposit()` gets called you'll artificially change the time. The function `CheckTime()` checks the time every second, so next time it runs it'll think the time has ended, so it'll call `EndGame()`. The first thing `EndGame()` does is to check the number of deposited orbs, so the player will see they have won.

Viewing all articles
Browse latest Browse all 959

Trending Articles



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