Hi Nina,
project settings physics (both physics and physics 2D), gravity x and y are set to “0”
interesting is that this is only for the ENEMY lasers, not for the player one, that is fine. I have checked the code and also just copied it for testing from the lecture, so there is not typo here I think
private void Fire()
{
GameObject laser = Instantiate(
projectile,
transform.position,
Quaternion.identity
) as GameObject;
laser.GetComponent().velocity = new Vector2(-projectileSpeed, 0);
AudioSource.PlayClipAtPoint(shootSound, Camera.main.transform.position, shootSoundVolume);
}
It’s really funky as like said, it first goes diagonal but then it ends up flying in a line. I also thought it’s just a visual thing because the ship is so fast higher then the laser so it looks like it’s diagonal, but I set the speed of the projectile really slow for testing and still, it falls like a bomb before moving forward.
getting crazy as I finished the the rest of the laser defender course but can’t close it now