improve the laser animation, its a bit bland currently (a bit more light, more laser saber-ish, more animation when it goes out of the ship) #90
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixed in
c8d4731.The beam no longer appears fully formed for one frame.
LaserControllernowgives it an ignition: the bolt extends from the muzzle to the target over the
first 30% of a longer flash (0.34s, was 0.22s), on an ease-out curve, then
burns down. Layered on top of the beam are a white-hot core rod at 42% width,
a glowing cap at the travelling tip, and a flare at the emitter. Firing also
spawns muzzle sparks tinted to the beam colour (
MuzzleSparkVFXnow takes acolour).
Damage is unchanged - it is still applied instantly at full range on the
firing frame, so the animation is purely visual and cannot cost you a hit.
Covered by
tests/test_laser_animation.gd: the beam starts short, neverretracts, reaches full length over several frames and then clears, the far
target loses hp on the firing frame, and the sparks carry the beam colour.