seVor:... variable to hold the X axis position of the ship and another variable for the laser. In the update method I am making them equal each other ... when you move the ship obviously the laser moves also
Picture a Laser.Fire method that you call 1 time, when the player presses the fire button. Laser.Fire sets the X to the ship and sets the Y close to the turret, and, perhaps flags the laser as having been fired somehow. When you update "fired" lasers, only their Y values need to change - because during Laser.Fire, you already established X. In order to move straight up the screen (assuming a space invaders genre game), only Y needs to change after the laser has been fired.