A hard script .I need help to make it right

Hi everyone !I am Ady and i have to make a nice game in unity but i am stalled at a hard script .I have to make a script that make an object move ,with normal speed ,far away from his initial position ,but with control of breath detection(like virtual cigarette)(blow in microphone) .If anyone can help me ,i would be gratefull .PS: I need that script as soon as possible .

Sorry but I dont understand the question, as far as I can tell you want an object to move towards another object but then I’m lost… What’s this breath detection?

If you have any code that may make it easier for us to help :slight_smile:

Jamster

i have edited the question .if you can help me ,please do it !

Take a look at

and

(though i dont know if you can use that while the audio is streaming)

however you could get it done like this i think.

i don”t know how to combine a script that move an object A to another object B ,with a script that recognize sound of breath in microphone and start the action .

i still wait an complet answer .Please help me if anybody can !
PS :An complet answer means the script maked ,if i don`t ask too much .

I’m sorry to say this, but I don’t think it’s possible to recognize the sound of breath. You could check if the microphone is collecting data amd say to the player that he has to breathe. But if he talks, it would also work.

Here (http://forum.unity3d.com/threads/118215-Blow-detection-(Using-iOS-Microphone)) is the script that i have to combine with an move script (move and object A to another object B ).But i dont know how to do this .If anybody can make the script i would be gratefull !