More than a line, enemy movement in Unity

Sequence from game showing enemy with circular motion which spirals down the screen.
Variables required for both horizontal and vertical movement in Enemy script.
Assignment of variables controlling enemy oscillations in void Start of Enemy script.
Excerpt form void Update in the Enemy script controlling horizontal oscillation.
Excerpt form void Update in the Enemy script controlling vertical oscillation.

Unity Developer

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

Recommended from Medium

Design Patterns

Web Scraping For Beginners with Python

Data engineering tech at Unruly

Approval in Microsoft Flow (PowerAutomate) Sucks

Exciting New features from Chrome v.97

Deploy WSO2 Identity server with analytics in a GCE Kubernetes cluster using Helm from scratch

LeetCode Problem 206 — Reversed Linked List Solution

A Bootcamp Bubble?

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
Hal Brooks

Hal Brooks

Unity Developer

More from Medium

Basics of Optimization in Unity

Holding Gun: Inverse Kinematics

Mastering Unity Scripting | Summary — Chapter 2: Debugging

Math in Unity : Intersections (Part IV)