Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: Neikke on October 10, 2017, 04:51:23 AM
-
Is there a way to make a pitching sound effect in PM? When you collect the coins and with each coin in a row - coin sound gets higher and higher? Thanks in advance!
-
Put play audio and timer (float variable + add float) on the first coin, on the second coin put compare float, if timer float > defined value for triggering higher pitch sound play higher pitch sound (or rise sound pitch) and restart timer by setting float to 0. If timer float < defined value, play regular pitched clip or lower pitch value, or however you want it to function. Rinse and repeat.
-
Aha I see! Now I start to understand it! By the way did you mean ">" in the first case?
Thanks a lot!
-
Yes, >, sorry about that.
-
Thanks a lot man!
-
NP, yell if you need some more help. Great thing is that you can make prefabs of 3, 5, 10, 15 coins, whatever. But if you're laying groups of coins close to each other, make sure the first one in every group also has timer checking so it can be compared to the timer of the last coin in the previous group.
-
Yep that definitely makes sense! I'll try it! :)