playMaker

Author Topic: Roll Ball Sound  (Read 2181 times)

KrzysztofZuk

  • Playmaker Newbie
  • *
  • Posts: 16
Roll Ball Sound
« on: November 08, 2014, 02:02:00 PM »
Hello, I want to create game, where ball will be roll (add Torque by accelerometer). So if ball stay in place there should be no sound, but when ball start to roll then sound of rolling ball should be activated. Do you have idea how to make it with playmaker ?? Is there some possibility to make this: if for example x value of ball stay in place (don't change) = do nothing but if it will start to roll - make event that will turn on sound :) ?

600

  • Beta Group
  • Hero Member
  • *
  • Posts: 715
    • Flashing Lights
Re: Roll Ball Sound
« Reply #1 on: November 08, 2014, 02:44:28 PM »
Hi,

if you use physics, can try it with get velocity and when its above 0.5 for example, play a sound.

KrzysztofZuk

  • Playmaker Newbie
  • *
  • Posts: 16
Re: Roll Ball Sound
« Reply #2 on: November 09, 2014, 03:42:57 PM »
Hello, thank you for your answer :) !  Anyway, I used "Get Speed" property, and use this property as a "pitch" value  of my rolling ball sound. ( I also used "Sample Curve" action to add some modifications).

Cheers !!