Posted 05 May 2017 - 11:39 PM
Hello,
I was making a countdown timer for a game I am making. I have made countdown timers before in Java as well as inside ComputerCraft. However, there is something weird that I just cannot pin-point for the life of me.
I am making two variables: mins and secs. Mins is mins = timerMinutes/60, and seconds is secs = timerMinutes%60. I believe that is correct.
However, the weird thing is that timerMInutes/60 is spitting out a bunch of numbers like so -> http://imgur.com/a/3grO7
I am pretty experienced with CC, but I still don't know everything. I am not sure if there is something I am missing here, but I just remember doing the same type of method to make a timer in Java. I am sure there is an easy enough solution to this.
Any help appreciated, thank you!
I was making a countdown timer for a game I am making. I have made countdown timers before in Java as well as inside ComputerCraft. However, there is something weird that I just cannot pin-point for the life of me.
I am making two variables: mins and secs. Mins is mins = timerMinutes/60, and seconds is secs = timerMinutes%60. I believe that is correct.
However, the weird thing is that timerMInutes/60 is spitting out a bunch of numbers like so -> http://imgur.com/a/3grO7
I am pretty experienced with CC, but I still don't know everything. I am not sure if there is something I am missing here, but I just remember doing the same type of method to make a timer in Java. I am sure there is an easy enough solution to this.
Any help appreciated, thank you!