Hey all! So I have this app where in one scene (the initial scene), I have it setup so that whenever you touch on the screen, a small sound clip of gunfire is played. I also have it so these gray enemy placeholder images are coming towards you, and as you either shoot them or they get close to you, they disappear and a counter increments. Once that counter exceeds 10, the scene switches, using the method code:
[[CCDirector sharedDirector]replaceScene:[ScoreScreenScene node]];
This switches the scene to what I want to someday be a score screen for the level the player just played.
Now that the introduction is done, my main problem is that when I switch scenes to the new ScoreScreenScene, the gunfire clip code sort of carries over. For example, just like in my initial scene, whenever I tap anywhere on my ScoreScreenScene, the same gunfire clip is played, despite the fact that there is no relevant code for that anywhere in the scene class. I have even tried not importing the initial scene class, and that did not work.
I didn't attach much code or my project because there is quite a bit of code that is unrelated to my problem, however if anyone would like me to post it because they think it would help, let me know and I'll get on it. I'm sure whatever this is is something stupid that I'm forgetting to do before switching scenes, or maybe it's a bug or something. Anyway, any help is appreciated. Thanks!