Howdy, Stranger!

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

How reliable are the timed macros?

edited November 2016 in Help! with 2.0
I know that in another text adventure builder I use, the timers can be rather unpredictable for others when they play your game. I suspect this is down to a number of things - the weight of the game, the users' internet connection, etc.

Because my game employs the <<timed>> macro fairly often - often in situations where it's important the action is triggered after the specified time - I thought I'd just check if Twine is known to suffer similar issues.

They work correctly for me, but I suspect that's because my game is constantly cached.

Comments

  • Except possibly at start-up or if you are loading external hosted resources (media) the user's internet connection should have no effect on the timing of things.

    The story HTML file you create is a web-application, and as such it has all the multi-threading limitations any web-application has. A timer event generally happens on (or as soon after as it is feasible) the time period indicated, this assumes that the GUI is not busy doing other things.
  • Oh, well that's encouraging. Thanks.
  • edited November 2016
    The <<timed>> and <<repeat>> macros are as reliable as the player's browser is as they reply on standard built-in APIs—which is to say, yes, they should be reliable.

    As far as caching goes. Your project is cached, in the sense you mean, for everyone. The only things that get loaded separately are any external resources you've specified. The story format itself and your project's passages, including the code within them, cannot be anything other than fully loaded.
  • All good to know. Thanks for clarifying.
Sign In or Register to comment.