PDA

View Full Version : specify angles


barfmonkey
04-12-2005, 01:41 AM
hi, i am making a game were you can rotate your arm with the arrow keys when you get to a sertain angle i want my guy to rotate i cant get it :eek: here is my code

onClipEvent (enterFrame) {
angle = Math.atan(y/x)/(Math.PI/180);
if (angle == 180) {
this._parent._xscale = -100;
}
}