public void update(double elapsedMilliseconds) { if (transition) { timer += elapsedMilliseconds; if (timer >= 3000d) { transition = false; timer = 0d; } } else { currentScreen.update(elapsedMilliseconds); } }