|
hi, i need help! im making a simple game were when you tap a object it does somthing. i just need a simple tap script. or tap count. i need somthing that says like: if (tapping){Audio.Play} somthing like that just a plain old tap script. Pls help! pls pls pls pls pls! Thanks guys! your the best!
(comments are locked)
|
|
These links might give you a clue. http://answers.unity3d.com/questions/12923/flick-determines-velocity http://unity3d.com/support/documentation/ScriptReference/AudioSource.PlayOneShot.html
(comments are locked)
|
|
I don't have the exact answer for your but I hope this helps. I'm not sure what you plan to write this in, but you could use the EventType.MouseDown and then use something like if game object is equal to something play sound. If you are not sure how to use these classes look at the scripting reference page: http://unity3d.com/support/documentation/ScriptReference/index.html I don't know if the MouseDown event would work on an iPhone...
Aug 09 '10 at 06:02 PM
BinaryCaveman
(comments are locked)
|

Please add the code you are having problems with and we'll see if we can fix it. P.S. if you want someone to write the code for you, you really should ask that in the forums (http://forum.unity3d.com/index.php).