x


Trouble with aiming with the mouse in a 2D sidescroller

As the title states, I'm having trouble with aiming with the mouse. I was searching for a way to to use it and I found code that looked promising here: HERE. It does shoot off the mouse, but it doesn't aim to where I want it. I get the following error: MissingMethodException: Method not found: 'UnityEngine.Transform.InverseTransformPosition'. Any help would be greatly appreciated seeing as I'm new with unity. Also, if it isn't to much of a hassle, how do I set it up so when you click, it only shoots once, not continuously. Thank you all for your help.

more ▼

asked May 09 '12 at 01:11 PM

timo0060 gravatar image

timo0060
129 11 25 28

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

0 answers: sort voted first
Be the first one to answer this question
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:

x3450
x983
x70
x61

asked: May 09 '12 at 01:11 PM

Seen: 705 times

Last Updated: May 09 '12 at 01:11 PM