- Home /
Taping in UnityIphone. URGENT!
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!
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).
Answer by NetFox · Aug 09, 2010 at 04:30 PM
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 $$anonymous$$ouseDown event would work on an iPhone...
Answer by Billamu · Aug 09, 2010 at 11:27 PM
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
Your answer
Follow this Question
Related Questions
Analogue OnMouseUp for iOS(Unity iPhone) 0 Answers
Touches don't respond correct 2 Answers
Detecting Click/Touch in Unity iPhone (SpriteManager) 1 Answer
Does UNity iPHOne work 1.7 work with the new iPhone 4 os? 1 Answer
touch game objects on ios 1 Answer