Thread: angle of player
View Single Post
  #5  
Old 08-17-2003, 06:59 AM
TribulationStaff TribulationStaff is offline
Registered User
Join Date: Jul 2003
Location: Pennsylvania
Posts: 368
TribulationStaff is on a distinguished road
Send a message via AIM to TribulationStaff
It looks to me that the way you have it, you will get a diamond sort of motion.

[edit]
try something more like
NPC Code:

playerx+=-(distfromcenter)*(somesortofpower)sin(anglefromcen ter);
playery+=(distfromcenter)*(somesortofpower)cos(ang lefromcenter); //this might be -= (see earlier comments)


this has to do with the derivatives of sin and cos.
[/edit]
__________________


Help me keep scripting

Last edited by TribulationStaff; 08-17-2003 at 07:10 AM..
Reply With Quote