level select imgs

Hey guys, I’m working on my game and I’m about to work on my level select screen. Now, I am using the director class with it so I was wondering, Should I make a background and have 20 different pictures with numbers on them and add functions and listeners to each one or is there an easier way to do this? I don’t want to take up too much memory so they way I explain, would that be an okay way because I’m using director so it would get rid of it once it switches scenes? [import]uid: 122076 topic_id: 22166 reply_id: 322166[/import]

This would be fine.

To make it faster on yourself you could use a for loop to add the images and their listeners, though. [import]uid: 52491 topic_id: 22166 reply_id: 88297[/import]

Oh, I just remembered I have a tutorial for spawning that way somewhere, hrm… Yeah; http://techority.com/2012/01/22/easy-level-unlocking-with-ego/

I believe that shows how to do so. (If you don’t already know.)

Peach :slight_smile: [import]uid: 52491 topic_id: 22166 reply_id: 88299[/import]