make a segment of laser, like if you could cut a small square out of the raiden laser going straight upward
create a distort map for it, 1 across, however many segments you want down (try 10)
create 2 different sprites to use as a bezier control point and an endpoint (we'll call them sprite1, and sprite2)
make a bezier curve using the quadratic function (qarp)and the locations of the 2 sprites and the an imagepoint on the nose of your ship
if you need help understanding what you're doing a little better, read some of this wikipedia article, especially the little moving diagrams near the end
but for practical purposes what you will do
is set each segment of your distort map in this way
h=half the width of your laser
for 0 to NumberOfSegmentsOfDistortMap
set displacement (real) column(0)row(loopindex)
x to qarp(ship.imagepointx(nose)-h, sprite1.x-h, sprite2.x-h,1-loopindex/NumberofRowsindistortmap)
y to qarp(ship.imagepointy(nose)+h, sprite1.y+h, sprite2.y+h, sprite2.x-h,1-loopindex/NumberofRowsindistortmap)
set displacement (real) column(1)row(loopindex)
x to qarp(ship.imagepointx(nose)-h, sprite1.x-h, sprite2.x-h, sprite2.x-h,1-loopindex/NumberofRowsindistortmap)
y to qarp(ship.imagepointy(nose)+h, sprite1.y+h, sprite2.y+h, sprite2.x-h,1-loopindex/NumberofRowsindistortmap)
this will bend your sprite along a curve beginning at the nose of your ship
and ending at sprite2, and the curve will be guided by sprite1
always
set sprite1.x = ship.x, and sprite1.y = to ship.y + a number that makes the ray look cool
sprite 1 will be guiding the laser, so if you want it to lean toward y, subtly the way it does in raiden this is a good way to start
set sprite2.y = 0 (top of the screen), and sprite2.x to ship.x + a number that changes when you're moving to the right or left, you can decide exactly how you want this to look
you can also add small random values to either control point for a wobbly effect
use an instant bullet aimed at sprite2 to check for hits
once you hit an enemy ship, set sprite2's position to the position of the ship
and make sprite1 move drastically to the right or left as your ship does
if you need more details on any of the steps I can help you, but I can't post a cap just now
if you get this far, you may notice something a little different about the bending of the ribbon
because we're using parallel lines, the fix is simple, and takes only a minute, but might be confusing in the middle of this