Scene Time and Game Time

JamJarRiotJamJarRiot Member Posts: 62
edited November -1 in Working with GS (Mac)
Ok, am I taking the wrong approach here because I can't see how Scene Time works. Displaying Game.Time from the attr browser shows the elapsed time of the entire game since it was initiated. But Scene Time seems to be exactly the same.

Say I have my initial Scene called START. This shows a title page and detects when the start button is pressed. After 5 seconds I press the start button, and my actual game level Scene is loaded. Displaying the Game.Time now would show roughly 6 seconds elapsed. But the Scene Time shows exactly the same, even though the current scene was started 5 seconds AFTER the global Time was initiated. My game level requires a trigger after 0.5 of a second but as it takes the entire running time of the game it's way beyond that.

Does that make sense to anyone ? Shouldn't a newly started Scene begin its own elapsed time from zero AS IT IS LOADED AND RUN?

Comments

  • JamJarRiotJamJarRiot Member Posts: 62
    I'll give that a go. Just seems a little odd having to make my own attribute to measure a scene's elapsed time when Scene.Time should do this anyway. Thanks for the tip though.
  • JamJarRiotJamJarRiot Member Posts: 62
    Ok, I see how that's working but I'm just wondering why I'm seeing the time from the first scene when I've left that scene and am displaying the time from an actor within the new scene. I assumed the first scene would be dumped from memory and the 2nd one loaded. Note; this isn't necessary to dismantle as I can get around it now, this is simple curiosity.
    Can the elapsed time of the current scene be viewed ?
Sign In or Register to comment.