x


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!

more ▼

asked Aug 09 '10 at 03:08 PM

Colin Allen gravatar image

Colin Allen
96 7 7 8

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).

Aug 09 '10 at 05:15 PM Ares
(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first
more ▼

answered Aug 09 '10 at 11:27 PM

Billamu gravatar image

Billamu
277 4 6 16

(comments are locked)
10|3000 characters needed characters left

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

more ▼

answered Aug 09 '10 at 04:30 PM

NetFox gravatar image

NetFox
31 2 2 6

I don't know if the MouseDown event would work on an iPhone...

Aug 09 '10 at 06:02 PM BinaryCaveman
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x3717
x1998
x576
x96
x39

asked: Aug 09 '10 at 03:08 PM

Seen: 1271 times

Last Updated: Aug 09 '10 at 03:08 PM