Learn to code by making a 2D space shooter game.

This shows if you want to manipulate the y vector you need to use the sin of an angle.
This shows if you want to manipulate x vector use cos.
if you define it like this then use spawnManager to spawn enemy random enemies will be cluttering on top of each other.
this will have an issue of spawning enemies on top of each other to fix
if you notice an enemy spawned in the same position Center
Fixed solution result.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Suleiman Abdullah

Suleiman Abdullah

Self taught Unity Developer, who is passion about making games