Timer at 10 minutes problem

Hi all,

I'm trying to set a scene up where the player can play a level for a maximum of 10 minutes. So, I set the timer for 600 but it never registers for some reason.

Is there a limit to how long the timer behavior can be active for?

Thanks in advance!

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Nope, there shouldn't be any limit. 600 seconds is definitely 10 minutes. Perhaps there's another reason it's not working for you. Are you using an After 600 seconds timer or are you using a rule set to When attribute self.Time > 600 ...?

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

  • DaveGWelshDaveGWelsh Member Posts: 60
    I'm using the 'After 600 seconds' Do this...

    Should I look more at the self.time?
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    edited January 2014
    No, either should work. Is your timer behavior inside of a rule? Is it possible that that rule condition is never triggering? Try adding a Log Debugging Statement just above and also within the Timer and watch the Debugger window to see if both statements appear (the latter after 10 minutes)

    If you don't want to wait 10 minutes, use 60 seconds instead. Then test if needed with 600.

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

  • DaveGWelshDaveGWelsh Member Posts: 60
    Thanks again for the reply. Much appreciated!

    it works fine with any time (I have a number of them) but the 10 minutes is the one that messes up for some reason. Also thanks for the LogdB info. i'll do that now :)
  • DaveGWelshDaveGWelsh Member Posts: 60
    Its weird. All times are being triggered apart from the 10 minutes.

    I'll try a slightly lore time i.e. 500 seconds or something.
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Try this file and let me know if the actor gets destroyed after 10 minutes (also leave the Debugger window open). It works fine for me.

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

  • DaveGWelshDaveGWelsh Member Posts: 60
    Hey man, thanks so much! I'll give it a go now!
  • DaveGWelshDaveGWelsh Member Posts: 60
    Ok, just to let you know that it worked fine! Grr. Lol :) I now kneed to figure out why this works and my 10 minutes don't.

    Thanks so much again though!
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    You're welcome. If you want, you can send me your project file (compress it as a .zip file, upload it to a file-sharing service such as Dropbox or Mediafire, and then then either post the link here or in a private message to me) and I'll let you know why it's not working.

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

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Could be.

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

Sign In or Register to comment.