The Daily Click ::. Forums ::. Klik Coding Help ::. Okay, I want to shoot, but I hate TGF's shooting engine, what are my options?
 

Post Reply  Post Oekaki 
 

Posted By Message

Jon Chambers



Registered
  25/08/2002
Points
  1071
12th January, 2004 at 01:55:17 -

Okay guys, I know all about sine cosine secent cosecent tangent cotangent etc. Though my formulae doesn't use any trig, because what I want to do isn't a trig equation. It's just linear graphing. I mean, why calculate the direction an angle makes if you don't even know the angle to begin with? Then I'd have to work out the angle. Also with trig and TGF, you know that it isn't 100% accurate due to truncation. Am I making sense to anyone?

Chris, your example had nothing to do with what I wanted. I wanted it to automatically aim at a target. If I wanted to aim and fire using any other method, I would be able to do that anyway. Though thanx for trying.

 
Copy this to your hard drive. It will be worth alot when I'm famous.

Notice: Spelling mistakes above left in for people who need to correct others to make their life fulfilled.

Shen

Possibly Insane

Registered
  14/05/2002
Points
  3497
13th January, 2004 at 15:46:57 -

Yeah. Basically set the decimal offset of the advanced math to 4 and divide all calculations by 10000.

 
gone fishin'

Jon Chambers



Registered
  25/08/2002
Points
  1071
15th January, 2004 at 04:14:18 -

No, that's stupid. It still gets truncated to the nearest pixil. You can't set something to pixel 143.987. The only thing that indicates where the bullet is, is which pizel it's located at. I could save the co-ordinates, but it would still be a waste of time. Trig is very useful, but not for this. This is not a trig problem. Does anyone understand me?

 
Copy this to your hard drive. It will be worth alot when I'm famous.

Notice: Spelling mistakes above left in for people who need to correct others to make their life fulfilled.
   

Post Reply



 



Advertisement

Worth A Click