For the game I am writing, I have a several screens at the beginning where the user makes selection of difficulty, type of game, etc. I transition from screen to screen by creating the screen outside of the viewing area, then tweening it onscreen, while tweening the old one offscreen. I really like the effect, however, I was getting some lag at the very beginning as I create the new screen, and load in the background graphic. This causes an initial 'pop' as the transition begins.
My solution to this was to create another juggler in my class, and then only call advanceTime if the event.passedTime was less than 0.1 sec.
double passedTime = event.passedTime; if (passedTime < 0.1){ [mSmoothJuggler advanceTime:passedTime]; }
I'm kind of torn between feeling clever, and like I'm doing it wrong. While the exact amount of time that the scene transition takes isn't critical to me, having it appear smooth makes it look a LOT better. Is this a reasonable solution, or is there a better way? Thanks!