Jump to content
Sign in to follow this  
jbs30000

Quick sound question

Recommended Posts

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.

Share this post


Link to post
Share on other sites

Sounds like a problem with your code. Did you put something in there to make it wait until a sound is finished?

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...