Please let me know why Hour hand does not work. Code included

bajashbajash Member, PRO Posts: 215
edited November -1 in Working with GS (Mac)
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))

Comments

  • bajashbajash Member, PRO Posts: 215
    If anyone could help let me know. If you need further info please let me know.

    Thanks.
  • bajashbajash Member, PRO Posts: 215
    Hello,

    This ifs very frustrating about GS forums. I have been asking for help for days on this question.
  • Rob2Rob2 Member Posts: 2,402
    you need a ) at the end of your formula.

    edit : or take off ( before game would make more sense :)

    edit2: assuming your calculation is correct which it looks vaguely like it is.:))
  • bajashbajash Member, PRO Posts: 215
    Thank you Rob2, I will try this. :)
  • bajashbajash Member, PRO Posts: 215
    @Rob2,

    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.
Sign In or Register to comment.