The audio is not played when a collision happens. What is the problem?
asked Dec 09 '10 at 06:50 PM
The code looks fine. Make sure that
See the collision action matrix at the bottom of this page to see what messages are sent in different circumstances. You can further debug this issue using a print("Collision Detected"); just before audio.Play();
all you have to do is
make that adjustment, and replace it into your OnCollisionEnter function. really simple. hope this helps!
answered Dec 09 '10 at 10:06 PM