Re: Trigger repeating audio using SDL Mixer

#15
Hello,

mat_bullet is not a material it's a surface type. Every material can have a surface type which describes physical properties of that material like the friction or sound obstruction. All surface type are defined in a xml file which can be found here Assets\libs\MaterialEffects\SurfaceTypes.xml. In that file you can also define your own custom surface types as we did with the mat_bullet. Those types then can be used to trigger certain sounds on collision, for example when the mat_bullet type hits a mat_concrete type you can play the "Hit wall"' sound and if the mat_bullet type hits a mat_wood type you can play the "Hit wood" sound, I guess you get the idea. You can have a look at the Assets\Libs\MaterialEffects\MaterialEffects.xml file to maybe get a better idea of the system.

I hope this answers your question.

Cheers,
Alex

Re: Trigger repeating audio using SDL Mixer

#16
cry-alex wrote:Hello,

mat_bullet is not a material it's a surface type. Every material can have a surface type which describes physical properties of that material like the friction or sound obstruction. All surface type are defined in a xml file which can be found here Assets\libs\MaterialEffects\SurfaceTypes.xml. In that file you can also define your own custom surface types as we did with the mat_bullet. Those types then can be used to trigger certain sounds on collision, for example when the mat_bullet type hits a mat_concrete type you can play the "Hit wall"' sound and if the mat_bullet type hits a mat_wood type you can play the "Hit wood" sound, I guess you get the idea. You can have a look at the Assets\Libs\MaterialEffects\MaterialEffects.xml file to maybe get a better idea of the system.

I hope this answers your question.

Cheers,
Alex

Hopefully a "UI connect sound to that mat type solution" will be available inside the Sandbox Editor in the future instead of manually adding lines externally in an Excel sheet / XML.

Who is online

Users browsing this forum: No registered users and 1 guest