Please let me know why Hour hand does not work. Code included
bajash
Member
John,
Sorry, I can not find how to post the screen shots. I hope the following helps.
The Hour hand worked fine on all my clock until last week. Here is my coding:
I have a game attribute HourTarget set at 10 (interger).
I made a "Constrain Attribute" Rule for my hour hand.png
In the Constrain Attribute pull down box I have "self.Rotation" to"
90-(30*((game.Clock.Hour%12+ game.Clock.Minute /60))
Member
John,
Sorry, I can not find how to post the screen shots. I hope the following helps.
The Hour hand worked fine on all my clock until last week. Here is my coding:
I have a game attribute HourTarget set at 10 (interger).
I made a "Constrain Attribute" Rule for my hour hand.png
In the Constrain Attribute pull down box I have "self.Rotation" to"
90-(30*((game.Clock.Hour%12+ game.Clock.Minute /60))
Comments
Thanks.
This ifs very frustrating about GS forums. I have been asking for help for days on this question.
edit : or take off ( before game would make more sense
edit2: assuming your calculation is correct which it looks vaguely like it is.:))
I went back and tried your advice. Thank you for taking the time out to answer my post. Since I was looking at the code with fresh eyes, I found something missing and it worked.