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\$

1 Answer 1

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\$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .