Sound play in different

Hi, I have a weird bug, I have followed code and the Audio component the same as Rick teach. But when I hit play the ball didn’t make a sound when it hit the block, it’s only sounded when it hit the LoseCollider bottom.

Hi Truong,

Welcome to our community! :slight_smile:

Are there any error messages in your Console?

Hi Nina, Yeah I have an error in console: It said that I need to use Collider2D instead of Collision2D.

Replace the type of the parameter in the method mentioned in the error message with the suggested type.

Thank you for helping after changing from collision to collider, It did the trick but in the lecture I saw Rick using Collision2D, can you tell me what is the different between Collision and Collider? Thk you!!!.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms