- Home /
Question by
timo0060 · May 09, 2012 at 01:11 PM ·
javascriptmouseaimingsidescroller
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.
Comment