Question about the OSTIME Demo template
When the clock in that demo reaches 12:00, the time reads 00:00, anyone know how to fix that?
Best Answer
-
RThurman Posts: 2,881
A quick way is to create a rule.
For the image in the 10's column:
When ANY
--game.Clock.Hour = 12
--game.Clock.Hour = 0
----Constrain Attribute: self.Image To: 1
--otherwise
----Constrain Attribute: self.Image To: (floor(( game.Clock.Hour %12)/10))..".png"
For the image in the 1's column:
When ANY
--game.Clock.Hour = 12
--game.Clock.Hour = 0
----Constrain Attribute: self.Image To: 2
--otherwise
----Constrain Attribute: self.Image To: (floor(( game.Clock.Hour %12)%10))..".png"
Answers