Timer problems after upgrading to 0.8.8
hrsmedia
Member Posts: 522
When loading into a scene there is now a pause for a few seconds after the loading icon has disappeared, this makes my timers off by a few seconds when initially loading the scene. If I restart the scene/level once inside it, the timers are OK.
When I published in 0.8.7, it would change scene almost instantly once the loading icon disappeared.
This also affected a boolean attribute which doesn't work when scene is initially loaded, then does work when scene is replayed.
Everything works fine when previewing in GameSalad, these problems only occur when testing on device.
When I published in 0.8.7, it would change scene almost instantly once the loading icon disappeared.
This also affected a boolean attribute which doesn't work when scene is initially loaded, then does work when scene is replayed.
Everything works fine when previewing in GameSalad, these problems only occur when testing on device.
Comments
i want to fix a bug in the menu and i did fixed it and now i see that my other scenes that starts with time attributs rules are off,
GS please fix this, a hole month is a lot of time with off sync timers and time attributs !
I have delayed everything in the scenes by a few seconds to try and make up for this, but it still means the scenes images/engine etc. that are not already loaded into the RAM will have a slightly shorter intro at the beginning of the level.
It seems only scenes that have the same images/engine already loaded into the RAM load without a pause. So for example when changing from level 01 to level 02 the transition is smooth because they use mostly the same images/engine.
If you want accurate timers...use the game.time or self.time.
Use a time marker and then set an internal clock counter to it using a constrain or 2. It will be accurate.
Here is a thread on this:
http://www.gsproforum.com/viewtopic.php?f=18&t=2
ARGHHHH!!!!!!
This controller should be the lowest actor on the lowest layer in the scene.
Then have a .25 second delay timer...which throws a boolean switch to true that the scene is loaded...
Then when the scene is loaded...have all your other actors turn on...this way all your timers will fire on the same switch...not as they load.
_______________
Nesen Probe http://itunes.apple.com/us/app/nesen-probe/id377766693?mt=8
Tickle Stones http://itunes.apple.com/us/app/tickle-stones/id363484260?mt=8
Food Fight! (free) http://itunes.apple.com/us/app/food-fight/id352646643?mt=8