Image

Imagesciucaro wrote in Imagepython_dev

PyGame Scenes?

I found an interesting site to help learn PyGame stuff:

http://scriptedfun.com/

The guy posts videos of what to write and explains it in words. So far, he has 4 videos up, including one to make a 'barebones' file to work off of.

I've learned greatly from this one, and I also included Psyco to see if that speeds anything up.

Question though, if anyone here knows...

How do I make 'scenes' in Pygame?

Like when you turn on a game, the first thing you see is the brand name, then the title and some goofy animation, then the main menu, then menus after that (select your character), and then the game.

I tried making two while loops, a nested while loop, and using time.sleep(x), but neither worked.

How is it supposed to be set up, and obviously, cleaned up after moving to the next scene?