Clock/Time in GS (08:00 am)

NMansellNMansell Member Posts: 143
edited November -1 in Working with GS (Mac)
Is there a way to create a clock/time in Game Salad which could grab the phone system time - so 08:30 am etc etc

Comments

  • giacomopoppigiacomopoppi Member, PRO Posts: 914
    Nope, not yet :/

    Giacomo
  • giacomopoppigiacomopoppi Member, PRO Posts: 914
    Me too! It would be cool also to have attributes change as time passes. (growing a plant for example :P)

    The feature I need the most of all is the custom collision shape tho :/ (should be coming this fall)

    Giacomo
  • NMansellNMansell Member Posts: 143
    is there anyway to use a time as a attribute though. so i can add up 10 minutes etc etc
  • NMansellNMansell Member Posts: 143
    Has anyone created a clock in their game that basically shows the hours and minutes and attributes can calculate 40 minutes from an hour, etc please?
  • giacomopoppigiacomopoppi Member, PRO Posts: 914
    Just use a timer:

    1) create a game attribute called timeMinutes
    2) go to any actor in the scene
    3) drag in the timer behaviour:

    -------
    Timer
    every 60 seconds
    change attribute game.timeMinutes = (game.timeMinutes + 1)
    -------

    Done!

    Then, to get the game to tell you when the 40 minutes are over you create a rule:

    -------
    Rule:
    when timeMinutes = 40
    Display Text: "40 Minutes have passed!" (<---- for example)
    -------

    Hope I helped ;)

    Giacomo

    P.S. obviously you have to develop on this idea to amke an actual clock, or showing how many hours have passed. You can always ask for help if you get stuck ;)
  • NMansellNMansell Member Posts: 143
    thanks, i'll have a go :)
Sign In or Register to comment.