playMaker

Author Topic: How to make rising pitch sound effect for coins? [SOLVED]  (Read 1108 times)

Neikke

  • Full Member
  • ***
  • Posts: 134
    • View Profile
How to make rising pitch sound effect for coins? [SOLVED]
« on: October 10, 2017, 01: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!
« Last Edit: October 10, 2017, 03:52:05 AM by djaydino »

krmko

  • Beta Group
  • Hero Member
  • *
  • Posts: 1057
    • View Profile
    • Fat Pug Studio
Re: How to make rising pitch sound effect for coins?
« Reply #1 on: October 10, 2017, 02: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.
« Last Edit: October 10, 2017, 03:25:11 AM by krmko »

Neikke

  • Full Member
  • ***
  • Posts: 134
    • View Profile
Re: How to make rising pitch sound effect for coins?
« Reply #2 on: October 10, 2017, 03: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!

krmko

  • Beta Group
  • Hero Member
  • *
  • Posts: 1057
    • View Profile
    • Fat Pug Studio
Re: How to make rising pitch sound effect for coins?
« Reply #3 on: October 10, 2017, 03:25:22 AM »
Yes, >, sorry about that.

Neikke

  • Full Member
  • ***
  • Posts: 134
    • View Profile
Re: How to make rising pitch sound effect for coins?
« Reply #4 on: October 10, 2017, 03:39:03 AM »
Thanks a lot man!

krmko

  • Beta Group
  • Hero Member
  • *
  • Posts: 1057
    • View Profile
    • Fat Pug Studio
Re: How to make rising pitch sound effect for coins? [SOLVED]
« Reply #5 on: October 10, 2017, 04: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.

Neikke

  • Full Member
  • ***
  • Posts: 134
    • View Profile
Re: How to make rising pitch sound effect for coins? [SOLVED]
« Reply #6 on: October 10, 2017, 04:09:00 AM »
Yep that definitely makes sense! I'll try it! :)