I wanna create a splashscreen/logoscreen when i start my game.
And i want to be able to change the transparency values of my logo so it fades into focus starting at being invisible (fully transpatrent?) to visible (no transparency) over a certain period of time (i'm thinking to just use a counter?).
the way i pain my logo onscreen now is this:
g.fillRect(0, 0, 480, 800);
g.drawImage(splashscreenlogo, 0, getHeight() / 3, this);
So I'probably wanna have a for loop run over my g.drawImage function, and set the transparency values within this loop,but i have no idea how i set the transparency values of my image.
Can anyone help?