0
\$\begingroup\$

I'm using Slick2D and LWJGL for my StateBasedGame and I was wondering if there was a way to enter into my splashscreen on application load using a transition?

I tried using:

this.enterState(SPLASH, new FadeInTransition(Color.black), new FadeInTransition(Color.black));

However, it fades in nicely but then it flashes again for the second transition :(

Anyone know how I can get around that?

Would I have to create my own transition?

\$\endgroup\$
0
\$\begingroup\$

You can pass an empty transition to the second transition parameter to prevent the additional transition from playing.

this.enterState(SPLASH, new FadeInTransition(Color.black), new EmptyTransition());
\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.