GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Clock/Time in GS (08:00 am)

NMansellNMansell Posts: 143Member
edited 2:51AM 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 Posts: 914Member, PRO
    Nope, not yet :/

    Giacomo
  • giacomopoppigiacomopoppi Posts: 914Member, PRO
    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 Posts: 143Member
    is there anyway to use a time as a attribute though. so i can add up 10 minutes etc etc
  • NMansellNMansell Posts: 143Member
    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 Posts: 914Member, PRO
    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 Posts: 143Member
    thanks, i'll have a go :)
This discussion has been closed.