Need a Special Timer...for each scene

childstudyLCchildstudyLC Member Posts: 0
edited July 2012 in Working with GS (Mac)
Hello- I am making a game that is going to help with lab research and children. We need timers on every scene that would time start at the Scene Change and then stop when the first object is touched. Then, I would need all these individual times to appear on a final page for the researcher to write down. Any suggestions for how to get this timer to work--it hasn't been working with any combination of rules that I have tried.

Best Answers

  • jn2002dkjn2002dk Posts: 102
    Accepted Answer
    Create a game variable for each scene and then store the scene timer in one of those at the end of each scene
  • tatiangtatiang Posts: 11,949
    Accepted Answer
    Not sure why you need a special timer, or any timers for that matter.

    Make an index attribute called game.sceneNumber. Set it to 1.

    On each "touchable object" actor: When Touch is Pressed --> Change Table Value (Row=game.sceneNumber, Column=1, Value=self.Time); Change Attribute game.sceneNumber to game.sceneNumber+1. You can either Change Scene or just disable the actors (e.g. Change Attribute self.touchable to false) at that point to prevent the values from being altered after the first touch.

    Then just create a loop to output the table cell values onto the screen.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

Sign In or Register to comment.