I'm making a preschool education game, where the user picks letters, numbers, shapes, and colors. There are about 100 possibilities.
Right now, I pick a random number 1-100. Then an I have an Int Switch determine:
If random=1, play audio "one" and put graphic 1 on polygon.
If random=2, play audio "two" and put graphic 2 on polygon.
If random=3, play audio "three" and put graphic 3 on polygon.
etc, ect, ect, ect ... all the way to 100.
I'm having some frame drop issues overall in my game. I haven't isolated this as the problem, but this is a prime suspect. So, my question is, is there a simpler, more elegant, less sloppy way to do this?
Thanks!