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! / Getting a sprite to 'turn to face' the mouse.

Author
Message
77!M
19
Years of Service
User Offline
Joined: 26th Mar 2007
Location:
Posted: 28th Mar 2007 14:57
As I posted before about needing the player sprite to move directly to the mouse, now I need the sprite to face the mouse for the duration of it's movement and stay facing in that direction when its stops.

Any suggestions?

-Will
aluseus GOD
19
Years of Service
User Offline
Joined: 19th Mar 2007
Location: I\'m here. Now I\'m there. I keep moving
Posted: 28th Mar 2007 20:46
Same Suggestion....
I'll do it okay?
aluseus GOD
19
Years of Service
User Offline
Joined: 19th Mar 2007
Location: I\'m here. Now I\'m there. I keep moving
Posted: 28th Mar 2007 21:22

there you go, the updated code!
Dave1974
21
Years of Service
User Offline
Joined: 1st Aug 2004
Location:
Posted: 28th Mar 2007 21:30
Hi guys

I've updated the code from the other thread (http://forum.thegamecreators.com/?m=forum_view&t=102880&b=4)



Hope this helps
aluseus GOD
19
Years of Service
User Offline
Joined: 19th Mar 2007
Location: I\'m here. Now I\'m there. I keep moving
Posted: 28th Mar 2007 21:43
You are awesome
77!M
19
Years of Service
User Offline
Joined: 26th Mar 2007
Location:
Posted: 30th Mar 2007 15:20
Perfect! Thanks a lot
aluseus GOD
19
Years of Service
User Offline
Joined: 19th Mar 2007
Location: I\'m here. Now I\'m there. I keep moving
Posted: 30th Mar 2007 17:49 Edited at: 30th Mar 2007 22:44
*BUmp

Can you make it so that it it heads towards another sprite?
It's getting impossible.

NEVER MIND....

Login to post a reply

Server time is: 2026-07-04 20:47:20
Your offset time is: 2026-07-04 20:47:20