Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Neikke on October 10, 2017, 04:51:23 AM

Title: How to make rising pitch sound effect for coins? [SOLVED]
Post 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!
Title: Re: How to make rising pitch sound effect for coins?
Post by: Fat Pug Studio on October 10, 2017, 05:02:21 AM
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.
Title: Re: How to make rising pitch sound effect for coins?
Post by: Neikke on October 10, 2017, 06:23:48 AM
Aha I see! Now I start to understand it! By the way did you mean ">" in the first case?

Thanks a lot!
Title: Re: How to make rising pitch sound effect for coins?
Post by: Fat Pug Studio on October 10, 2017, 06:25:22 AM
Yes, >, sorry about that.
Title: Re: How to make rising pitch sound effect for coins?
Post by: Neikke on October 10, 2017, 06:39:03 AM
Thanks a lot man!
Title: Re: How to make rising pitch sound effect for coins? [SOLVED]
Post by: Fat Pug Studio on October 10, 2017, 07:00:44 AM
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.
Title: Re: How to make rising pitch sound effect for coins? [SOLVED]
Post by: Neikke on October 10, 2017, 07:09:00 AM
Yep that definitely makes sense! I'll try it! :)