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! / Rotate Sprite - How so I point sprite at another set of coordinates

Author
Message
Bilboo
20
Years of Service
User Offline
Joined: 5th Dec 2003
Location:
Posted: 13th Jan 2004 01:27
Hi,

I've got a sprite which I'd like to point (using ROTATE SPRITE) in the direction of any given X,Y coordinates.

Can anyone help with the best method to do this please?

Many thanks
the_winch
21
Years of Service
User Offline
Joined: 1st Feb 2003
Location: Oxford, UK
Posted: 13th Jan 2004 03:01
Use atanfull()

simple example



dbpro : 2ghz p4m : 512mb : geforce 4 4200 go
Bilboo
20
Years of Service
User Offline
Joined: 5th Dec 2003
Location:
Posted: 13th Jan 2004 21:30
Thanks Winch, that's exactly what I needed.

Cheers

Login to post a reply

Server time is: 2024-05-12 05:44:57
Your offset time is: 2024-05-12 05:44:57