0 Members and 4 Guests are viewing this topic.
or if you know the angle the tank is shooting at, use sin(angle) as your y increment and cos(angle) as your x increment.
Quote from: nemo on January 12, 2011, 06:47:40 pmor if you know the angle the tank is shooting at, use sin(angle) as your y increment and cos(angle) as your x increment.Wouldn't that get you a fraction?Or does it round well?
Quote from: Michael_Lee on January 12, 2011, 06:51:23 pmQuote from: nemo on January 12, 2011, 06:47:40 pmor if you know the angle the tank is shooting at, use sin(angle) as your y increment and cos(angle) as your x increment.Wouldn't that get you a fraction?Or does it round well?sin and cos return -127 through 128 (or something like that)Edit: *In axe
:A-X*256//S->C:B-Y*256//S->D:For(L,0,S):ClrDraw:Pt-On(C*L//256+X,D*L//256+Y,Pic1):DispGraph:Pause 50:End
Quote from: happybobjr on January 12, 2011, 06:57:48 pmQuote from: Michael_Lee on January 12, 2011, 06:51:23 pmQuote from: nemo on January 12, 2011, 06:47:40 pmor if you know the angle the tank is shooting at, use sin(angle) as your y increment and cos(angle) as your x increment.Wouldn't that get you a fraction?Or does it round well?sin and cos return -127 through 128 (or something like that)Edit: *In axe*Facepalm
Quote from: Michael_Lee on January 12, 2011, 07:07:09 pmQuote from: happybobjr on January 12, 2011, 06:57:48 pmQuote from: Michael_Lee on January 12, 2011, 06:51:23 pmQuote from: nemo on January 12, 2011, 06:47:40 pmor if you know the angle the tank is shooting at, use sin(angle) as your y increment and cos(angle) as your x increment.Wouldn't that get you a fraction?Or does it round well?sin and cos return -127 through 128 (or something like that)Edit: *In axe*FacepalmNo, not on Omnimaga.
Oh, it was because it was pretty hard to detect if the facepalm was directed at yourself or happybobjr. In the first case it might be fine, although in your case it was not clear because Facepalm is all that your post contained, so it's subject to misinterpretation from other people, who might think it's directed at Happybobjr (and see it as out of line)