Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Thore on May 12, 2019, 11:40:48 AM

Title: Footsteps on Different Terrain?
Post by: Thore on May 12, 2019, 11:40:48 AM
Hi,

I have a 2D project and wonder how to implement footstep sounds based on the terrain the characters are on, so that different sounds are played when walking on grass versus walking on stone.

Related to this, how would you implement attack hit sounds based on weapon and object being hit? For instance, you can either use a club or a sword, and you can either hit a metal crate or a wooden crate. Any idea how to do this efficiently? I do not want to use the tags for this, because I also need to classify the type of objects to tell whether its e.g. ground, enemy etc.

Currently, my footstep sounds are hooked to a global event, which is triggered from an animation clip. I use MasterAudio, and assume it would be too expensive to do complex checks all the time.