jbs30000 Posted September 23, 2010 Share Posted September 23, 2010 In my Super Mario game when you jump I use channel 0 for the jumping noise. I just added a sound for when Mario jumps up and hits a brick using channel 1, but for some reason channel 1 only plays after channel 0 is through playing. Is that normal? I thought channels 0 and 1 could overlap. Quote Link to comment Share on other sites More sharing options...
+Random Terrain Posted September 23, 2010 Share Posted September 23, 2010 Sounds like a problem with your code. Did you put something in there to make it wait until a sound is finished? Quote Link to comment Share on other sites More sharing options...
jbs30000 Posted September 24, 2010 Author Share Posted September 24, 2010 When a collision is detected the program jumps to a subroutine where the volume is set to 5 and a counter is set to 10. When the program goes back to the main loop, the counter counts down to 0, and when it hits 0 the volume goes back to 0. However, for whatever reason, the sound isn't made until Mario lands on the ground again. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.