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.

--

--

--

Unity Developer

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Azure DevOps: Share Variable Across Stages

Operating System — Inter-process Communication (IPC)

Understanding the Fibonacci series algorithm, rabbits and recurrence

8 tips to prepare for AZ-301 exam

Title: Paint token burn notice — 6 / Trading competition reward NFTs sent out

Quickly create applications without any coding skills

no-code development

Dive Into The Laravel 9 Framework — Part 1: Introduction

New “Stable” for Polygon (Matic) Network RPC

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

Unity Developer

More from Medium

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

Screen Space Reflections In Unity

How to Build and Test your Unity Game

A Quick Guide to Using Coroutines with Unity!