While this is being decided, I plan on finishing Star Trek 83. There really isn't a whole lot needing to be completed on it anymore...
lol. Well, the 83+ version will be more graphically appealing, when I get around to it...
And besides, I didn't know that you were waiting for it to be completed, or I would have done that a long time ago...
And besides, I didn't know that you were waiting for it to be completed, or I would have done that a long time ago...
Not actively waiting for it, but it would be cool to play it after all the effort I know you've put into it.
Ok. I will make more of aneffort tonight on that then... I think it was decided that the Borg was to use Torpedoes, right? or do you want me to do cutter beams? (Those things are harsh to other ships...
Here's how you usually graph a circle:
Y1=sqrt(abs(R^2-X^2
Y2=-sqrt(abs(R^2-X^2
Therefore, you can just plug in the radius of the ship, the center X and Y, and then figure out if the torpedo is within that circle. I'll have to ponder it more for the exact equation.
Y1=sqrt(abs(R^2-X^2
Y2=-sqrt(abs(R^2-X^2
Therefore, you can just plug in the radius of the ship, the center X and Y, and then figure out if the torpedo is within that circle. I'll have to ponder it more for the exact equation.
I think so, only thing is, I will have to be able to make it appear when the torpedo impacts, and disappears afterwards. Also, there has to be 3 layers, depicting shield percentage...
Coolness. Here's how you should work it. If the Y value for the torpedo is greater than the Y value at the torpedo's X for the negative equation but less than the Y for the upper curve, then do the damage and delete the torpedo.
I put in the equation that you gave, and it gave half a circle, then shot off in an angle toward the top right of the screen... And it always starts on the far left...
That's the way it's supposed to be. Gimme the vars you're using for the torpedo's position and the ships position and radius, and I'll write all the code.
Well, before I go setting up the enemy weapons, I have noticed misc optimizations that can be done, so I am going to do them first. Let you know how that goes...
» Goto page 1, 2, 3 Next
» View previous topic :: View next topic
» View previous topic :: View next topic
Page 1 of 3
» All times are UTC - 5 Hours
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Advertisement