There might be times when you want to check for something only in a certain direction. You might, for example, want to create blocks that can only be pushed horizontally. Or you might want to create a duck that can only walk left. Whatever your reasons, you specify things to occur only in specific directions.
I have created a series of intermediate tutorials for PuzzleScript. These tutorials are aimed at someone with no prior knowledge about programming, except that you have read my beginner tutorials for PuzzleScript.
This post contains a bunch of colour palettes you can use in your games and pixel art projects, as well as some resources for helping you to automatically generate or manually create your own palettes, as well as some other resources. Updated periodically as I discover more stuff.
I now have a lot of PuzzleScript tutorials and the series is almost finished. Sometime in the future I also have plans to begin Python, C# and Unity tutorials. Thinking about this, I felt inspired to begin making Youtube versions of my tutorials that people can follow along with, and it allows me to go…
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.
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.
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.