How to play sound when arrow rotates ?

thanks SonicX for your help initiatives… yes I need to play sound when it rotates . the only difference in your code and my code is :

in your code, you know when it will rotate , so it is easy to add sound under your rotateArrow() function 

in my code the rotation happened via update function linked to gbs to know the right direction then it adjust using :

  1. arrow.rotation = curRotation + delta*0.3

as shown above in the code…  i will try to simulate the complete code and send it if it is not clear. 

thx

Abdulaziz

Do you have a function that makes the arrow rotate? (Im imagining what you want a a gps… like what you get in google maps?) like when a function is called then the other function is called to rotate the arrow? or is is just the gps that makes the arrow move and turn …?

Hi Sonix…

the function is above in the my first post second post it is runtime…  i think it is not possible because the arrow will be moving almost all  times even if it is .0001 so the sound will be played all times … i think i should change my idea to something else… thanks alot.

Abdul