Quantcast
Channel: Library Questions - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 2896

How do I make a fading in/out transition when switching gameStates/images?

$
0
0

Currently making a rhythm game and I want to create a fade to black/fade out animation for when I switch between the menu and the song selection screen. I also want to use this animation for when I'm trying to pick between songs in the song selection screen.

I know it's not entirely necessary and the game will still work without it, but I kinda wanna make it look prettier. Some ideas/code would be nice!

The animation would kinda look like this:

-fade to black

-change image behind it (hidden from user)

-start playing music of the song selection screen (hidden from user)

-fades out from black with entirely new background/music playing


Viewing all articles
Browse latest Browse all 2896

Trending Articles