I have a global variable that increases from value 1 to 7 .
Based on the value, First a set of sprites is generated and the animation frame numbers are set for each sprite generated .
Second, I want to load some strings into a specific array in each case.
The array contains names of audio files to be played when user clicks on the sprite .
Error :
Sprites are generated for each set but audio plays only for first set.
Possible points of error
1. variable not increasing in value = > no because the sprites to be generated are correct for each value of variable
2. array not loaded with file names => no because the audio plays correctly in first set of audio files(not possible unless audio file names correctly loaded).
3. code to play audio is not right => no because the audio plays correctly in first set of audio files.
4. the system -- compare variable to value 1 -- actions ; else compare variable to value2 -- actions is not working correctly.
How do I implement his ?