12 hour clock

zombie_farmzombie_farm Member Posts: 33
edited March 2012 in Working with GS (Mac)
Hi Im putting together a clock. This code is a bit confusing. This is what Im using for the hour
for the tens I have:
(floor(( game.Clock.Hour %12)/10))..".png"
for ones I have:
(( game.Clock.Hour %12)%10)..".png"

if its 12 am or pm I just get 0
Sign In or Register to comment.