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

combining cos and sin will provide circular movement.
code for laser behavior
I have renamed it to Smart_Enemy_Lasers.
Drag and drop target and explosion on the inspector.
else when no target I want the missile to fly and destroy itself
call this inside the update

--

--

--

Unity Developer

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

Recommended from Medium

30 Days of Code HackerRank Solutions

AAPT: error: attribute android:requestLegacyExternalStorage not found

Clean Code: Know thy complexities, data structures and avoid inventing algorithms (especially for…

Software Testing:concepts

How to configure SSL certificate for Java Application -GlassFish 5

Bazel: Why people love/hate it

Kotlin — “Lazy” initialization

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.

Space Shooter 2D — Part 3

2D Mobile Game: Player Hit Box

From Development to Build — Building in Unity