|
I've go the following script which rotates an object in front of me as I mouse over it. However, when I lift up on the mouse button, the rotation stops. I would like the function to continue, even when I lift up. How can I do this? Here's the code:
(comments are locked)
|
|
add in a boolean value to see if you've already clicked on it or not. Something like: This should let you click once to begin controlling it, then click again to stop it.
(comments are locked)
|
|
Not sure why, but I'm getting a compiling error when I run this. complete code: In the future, please try to keep clarifications or feedback attached to the entry you're referring to. You can't comment on my answer yet (a quirk of how the rep system works here) so, in the mean time, just put comments on your question or edit your post.The answer area should be reserved for solutions. In regards to the compile error, I apologize; I'm not somewhere I can test the code at the moment. What error are you receiving?
Jun 23 '11 at 05:42 PM
Chris D
(comments are locked)
|

Please remember to format your code (the 10101001 button) :D
Thank you Chris! I'm new here :)