Improving Enemy Movement!

Improving the normal enemy ship movement by adding some smooth sideways movement.

That’s right! A Sine wave!

Transform.Translate(), which I use for the down movement, takes a direction x speed, so wouldn’t work for my design of getting the Sine value.
The final result, using an amplitude of 0.5f

--

--

Unity game developer / C# Programmer / Gamer. Australian (Tasmanian) indie games developer for 10+ years. Currently looking for games industry employment.

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
Vincent Taylor

Unity game developer / C# Programmer / Gamer. Australian (Tasmanian) indie games developer for 10+ years. Currently looking for games industry employment.