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.

AppGameKit Classic Chat / Moveing sprite at an angle

Author
Message
Simwad
19
Years of Service
User Offline
Joined: 9th Oct 2005
Location: Zoo Station
Posted: 1st Feb 2012 12:21
I'm confused, if I use atanfull to rotate a turret in the middle of the screen, how would I shoot at that angle and move the bullet along.

I guess it's more math using cos and sin, I miss DBP's Move Sprite command

baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 1st Feb 2012 13:35
For percentage based system:

For pixel based system:


Simwad
19
Years of Service
User Offline
Joined: 9th Oct 2005
Location: Zoo Station
Posted: 2nd Feb 2012 12:15
Wow thanks baxslash, very helpful indeed.
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 2nd Feb 2012 12:32
I missed that command too

How about this one too:


Login to post a reply

Server time is: 2024-11-23 02:21:32
Your offset time is: 2024-11-23 02:21:32