Thread: Some angle help
View Single Post
  #11  
Old 10-31-2007, 12:23 AM
Tolnaftate2004 Tolnaftate2004 is offline
penguin.
Join Date: Jul 2004
Location: Berkeley, CA
Posts: 534
Tolnaftate2004 is a jewel in the roughTolnaftate2004 is a jewel in the rough
Send a message via AIM to Tolnaftate2004
Quote:
Originally Posted by coreys View Post
You mean like this.x += bla; this.y += bla;?
I'm not sure how to use that to go at a certain angle D:
move_dist*cos(angle) is the x component;
move_dist*sin(angle) is the y component (might need to be negative since (0,0) is the UPPER left corner on a level).
__________________
◕‿‿◕ · pfa · check yer syntax! · src

Killa Be: when i got that locker in 6th grade the only thing in it was a picture of a midget useing a firehose :/
Reply With Quote