Re: How can I use the mouse to rotate an object?
Quote:
Originally Posted by RGBreality
Hey, Paul_Boland! Thank you for your suggestion! I really like how nicely that turns out! Great idea!
But I need to pick your brain again... I need this spaceship to be able to turn 360 degrees (or all 32 directions). Because MouseCurrent only stays within the X-axis, the spaceship can only rotate 180 degrees (X-coordinates which are less than the spaceship's Y-coordinate).
So, how can I adjust this so that the spaceship can rotate 360 degrees?
Thank you again for your help and great idea!
Most appreciatively...
RGBreality
That shouldn't happen. The Spaceship is not set to look at the mouse, it's just being rotated based on the mouse being moved left or right. The ship sould be able to do full circles. Now if it was looking at the mouse, then yes, it would be restricted to 180 degrees, but it's not. I've not tested this in MMF but executing the code in my head, I don't see why it shouldn't be able to do a full rotation.