Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

2D All the way! / Problem with Getting Sprite to Rotate to Mouse

Author
Message
HippyJonYo
12
Years of Service
User Offline
Joined: 20th Apr 2010
Location: Somewhere
Posted: 20th Feb 2011 17:31
Hello,
I'm trying to get a sprite to rotate so that it is always facing the mouse cursor, but I can't seem to find how to do that. I actually can't get it to rotate at all. Is there a command to get it to follow something?

That was an untactical decision.
Virtual Nomad
Moderator
16
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 20th Feb 2011 22:33
something like this:

(modified version of this)

Virtual Nomad @ California, USA . DBPro V7.5
AMD Phenomâ„¢ X4 9750 Quad-Core @ 2.4 GHz . 8 GB PC2-6400 RAM
ATI Radeon HD 3650 @ 512 MB . Vista Home Premium 64 Bit
HippyJonYo
12
Years of Service
User Offline
Joined: 20th Apr 2010
Location: Somewhere
Posted: 21st Feb 2011 05:06
Thanks, that worked perfectly!

That was an untactical decision.

Login to post a reply

Server time is: 2022-12-05 04:39:12
Your offset time is: 2022-12-05 04:39:12