shield arcs

BlitzMax Forums/BlitzMax Beginners Area/shield arcs

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

so before they are loaded only , i thought it only affected drawing commands.

btw the dimensions for each arc are the same. basically you could say its one arc, just each in a different direction, for starboard,port,aft, etc...

of course your code there works perfect, as in the shield arcs are placed perfectly together to a T, and rotate well. However I have realised some of my ways I tested it works too.

What is happening however is I place an enemyship above me, and have him fire, and no matter what direction I have turned, thus turning my arcs, it always takes power from the front shield.

same with if i place an enemy below and rotate, it always takes from the rear shield.

i think the problem might lay with the fact that all of the arcs are drawn at the ships x and y, and the collision is checking at the ships X and Y for each arc image.
I tried adding in the numerical offset appropriately 50, -50 to each one, but it didn't entirely correct it.

also its interesting to see that in the imagehandle, one specifies a -50 or +50 value for an x or y coordinate but it moves opposite along the coordinate plane than how it should.

but putting offset in the drawing to position the arcs where they should be instead offset in the image handle, makes it so that i never can set a correct handle to get the arcs to rotate how they should, so by adjusting the drawing x and y they end up correctly positioned but without rotating the way i want them too.