Coding Triple Shot
Hey so I'm not sure if I am posting this in the correct spot so forgive me if I am wrong. Anyways my issue has been while working on the space shooter course. I set up my triple shot and it seems to lag behind my character. If i move to the sides of the screen while shooting it the lasers seem to stick towards closer to the center of the screen. However it seems as if behind the screen the lasers are still colliding with the enemy on point.
_canFire = Time.time + _fireRate;
if (_isTripleShotActive == true)
Instantiate(_tripleShotPrefab, transform.position, Quaternion.identity);
Instantiate(_laserPrefab, transform.position + new Vector3(0, 1.5f, 0), Quaternion.identity);
I just went through the same issue, seems like all the transform positions get messed up when converting to a prefab.
I changed the transform of the prefab to be 0,0,0
Change the value for each laser to be correct within the prefab view (-0.8, 0, 0) (0, 1.2, 0) (0.8, 0, 0) (left - middle - right).
Now it works for me correctly.