Laser turrets firing actual lasers.
Posted: Sun Nov 30, 2014 10:24 pm
I'm just working on something small, modifying existing entities to suit my wants.
Basically, I want the laser turrets to fire a constant laser at their target, instead of the separated blasts that come in the base game.
I started with changing the sprite for the bullet from 7x14px to 14x100px, and upping the firing speed and initial speed of the projectile to make the laser appear instant to the target. I also lowered the damage for balancing, though I need to refine this.
Where my problem comes in, is the laser projectile sprite is created at the laser tower, with the center of the sprite starting at the center of the turret. Since I lengthened the laser sprite, it appears to come from behind the turret.
Is there a way to fix this?
*Edit: I will also be changing the sound played for the firing of the laser to a more constant laser beam sound, but that's just a matter of finding one. Increasing the firing speed caused the regular sound to be played over and over very quickly while the turret is firing
Basically, I want the laser turrets to fire a constant laser at their target, instead of the separated blasts that come in the base game.
I started with changing the sprite for the bullet from 7x14px to 14x100px, and upping the firing speed and initial speed of the projectile to make the laser appear instant to the target. I also lowered the damage for balancing, though I need to refine this.
Where my problem comes in, is the laser projectile sprite is created at the laser tower, with the center of the sprite starting at the center of the turret. Since I lengthened the laser sprite, it appears to come from behind the turret.
Is there a way to fix this?
*Edit: I will also be changing the sound played for the firing of the laser to a more constant laser beam sound, but that's just a matter of finding one. Increasing the firing speed caused the regular sound to be played over and over very quickly while the turret is firing