Moving one object towards another is a simple enough task, and a Lerp is a good way to get the job done. Lerping can also be used to gradually change one value into another. It's easy to do wrong, so I'll talk about the right way if you want to get a constant speed.
How To Do 2D Top-Down Movement – Unity C#
This post describes how to create a simple movement for a 2D top-down game, and it assumes that the reader is a beginner in such topics.
How To Do Vector MoveTowards – Unity C#
A common task is moving one object towards another position in Unity. Assuming you want constant, linear speed, there are two methods I will discuss: Lerp and MoveTowards.
How To Optimize a Unity Game
Last year I was working on a big RPG project as part of my studies. It looked great but didn't run so well on the ps4 dev kit. After a lot of tweaking I got it from a pretty stuttery frame rate to something smooth. This guide will tell you how I did it.
Line Saving Code Tips – C#
Reducing lines of code can make your work more readable, making it easier for you and for others to read. More lines means more mental gymnastics to decipher which part of code does what. I want to go over some tips and tricks that helpd me.
How To Get Game Objects With A Specific Script Attached – Unity C#
If you've ever wanted to grab all of the game objects in your Unity scene with a specific script attached and refer to them in your code, it's quite straight forward. You can also get a single game object the same way.
How To Get All Of An Object’s Children – Unity C#
If you've ever wanted to get all of the children attached to a Unity GameObject and turn them into an array, there is a simple way to do it. This tutorial shows you how to do it in simple C# code.
How to do For Each Loops in – Unity C#
For each loops in C# and Unity go through every element in an array or storage container and they are simple to write. Let me show you how.
