after more fiddling i dont think I quite have it.
thats what ive been working with, thing is getting each arc in the right x and why positions and getting them to rotate properly. I had them in the right positions before, and rotating fine, but when I rotated my ship, the graphics stayed true, but the collision was awry.
this is one ill have to do through trial and error myself :)
the above is the result of endless variations ive tried, but u can see what im working with. Placing, and handling.
ok above im trying to correct one at a time, starting with front shield. so without setting the +30 on the Y value in setimagehandle of front shield, the front arc appears of course in the centre of the ship, so I want to move it up a bit. so I put in -30, to go up as in to the top of the screen you subtract from the Y value, but oddly enough this causes it(the graphic to go DOWN), and I have to + 30 to get it to go up. This is where my collision is gone awry, something is opposited for some reason.
adjusting the X and Y of where the shield arc is drawn doesnt work because then it throws off the rotation. wont rotate the way they should.
'handle shield arc gfx by centre of ship 'SetImageHandle(shield_front, ImageWidth(shipimage)/2 -5, ImageHeight(shipimage)/2) 'SetImageHandle(shield_aft, ImageWidth(shipimage)/2 - 5, ImageHeight(shipimage)/2 - 105) 'SetImageHandle(shield_left, ImageWidth(shipimage)/2, ImageHeight(shipimage)/2 - 15) 'SetImageHandle(shield_right, ImageWidth(shipimage)/2 - 100, ImageHeight(shipimage)/2 - 15) ' SetImageHandle(shield_front, 50, 50) ' SetImageHandle(shield_aft,50,50) ' SetImageHandle(shield_left, 50,50 ) ' SetImageHandle(shield_right, 50,50 ) 'SetAlpha 0.0 'draw shield arcs around player ship DrawImage shield_front,(x -ImageWidth(shipimage)/2) ,(y - ImageHeight(shipimage)/2) DrawImage shield_aft, x , y DrawImage shield_left, x , y DrawImage shield_right,x , y
thats what ive been working with, thing is getting each arc in the right x and why positions and getting them to rotate properly. I had them in the right positions before, and rotating fine, but when I rotated my ship, the graphics stayed true, but the collision was awry.
this is one ill have to do through trial and error myself :)
the above is the result of endless variations ive tried, but u can see what im working with. Placing, and handling.
SetImageHandle(shield_front, ImageWidth(shield_front)/2,(ImageHeight(shield_front)+30) ) SetImageHandle(shield_aft,50,50) SetImageHandle(shield_left, 50,50 ) SetImageHandle(shield_right, 50,50 ) 'SetAlpha 0.0 'draw shield arcs around player ship DrawImage shield_front, x, y DrawImage shield_aft, x , y DrawImage shield_left, x , y DrawImage shield_right, x , y
ok above im trying to correct one at a time, starting with front shield. so without setting the +30 on the Y value in setimagehandle of front shield, the front arc appears of course in the centre of the ship, so I want to move it up a bit. so I put in -30, to go up as in to the top of the screen you subtract from the Y value, but oddly enough this causes it(the graphic to go DOWN), and I have to + 30 to get it to go up. This is where my collision is gone awry, something is opposited for some reason.
adjusting the X and Y of where the shield arc is drawn doesnt work because then it throws off the rotation. wont rotate the way they should.