Alarm Clock Help

zombiesdrulezombiesdrule PRO Posts: 131
edited February 2012 in Working with GS (Mac)
Hello,
I'm currently making a clock app using the clock template and I'm trying to figure out how to set it up so the user can pick a time for an alarm to sound. Can somebody point me in the right direction? I'm more of an artist/animator than a programmer and sometimes I get stuck on the simple things :)
Thanks
ZD

Comments

  • zombiesdrulezombiesdrule PRO Posts: 131
    anyone???
  • CodeMonkeyCodeMonkey Head Chef, Member, PRO Posts: 1,803
    There happen to be some game attributes already there for you. (SecondTarget1, MinuteTarget1, etc) You would need to add a rule that if each of those attributes equals their corresponding time attributes from the Devices->Clock attributes, then you would set an attribute that the alarm is to ring.

    To set those game attributes, you would need a method of changing them. Whether it be by the Keyboard Input behavior or by some visual interface to set those values using the Change Attribute behavior.
  • zombiesdrulezombiesdrule PRO Posts: 131
    Thanks for pointing me in the right direction codemonkey.
    zd
  • morphinegamingmachinemorphinegamingmachine Member, PRO Posts: 449
    only problem is the gamesaklad app couldn't make a noise unless currently open. so is it meant to be like a night stand clock?>
  • zombiesdrulezombiesdrule PRO Posts: 131
    Yes Morphine I'm planing a night stand clock for kids. I was thinking of keeping the alarm choices simple but I always have trouble wrapping my head around the logic of the coding.
Sign In or Register to comment.