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! / How can I rotate a sprite and rotate the direction it fires from?

Author
Message
Ooska
21
Years of Service
User Offline
Joined: 29th Aug 2004
Location:
Posted: 9th Nov 2005 01:41
Im making a game that is from the top view and uses the mouse to aim. I want the sprite to point toward the mouse. Is there any way to do this?

Read Ender's Game. And all its sequals.
Zergei
21
Years of Service
User Offline
Joined: 9th Feb 2005
Location: Everywhere
Posted: 9th Nov 2005 04:46
Try this...



I know its not the best way to do it, but may give you an idea of what to do...
Ooska
21
Years of Service
User Offline
Joined: 29th Aug 2004
Location:
Posted: 9th Nov 2005 04:55
CRAP! uh sorry. I forgot to say dbC

Read Ender's Game. And all its sequals.
Zergei
21
Years of Service
User Offline
Joined: 9th Feb 2005
Location: Everywhere
Posted: 9th Nov 2005 15:20 Edited at: 9th Nov 2005 16:14
Then try replacing the sprite for a 3d plain...



This done in DbC...
Ooska
21
Years of Service
User Offline
Joined: 29th Aug 2004
Location:
Posted: 10th Nov 2005 01:37
Cool thanks!

Read Ender's Game. And all its sequals.

Login to post a reply

Server time is: 2026-07-06 17:11:29
Your offset time is: 2026-07-06 17:11:29