The Unity Tips & Tricks tutorial series is for people who are interested in good tips for making games in unity.
This is a link describing calculating the distance between two objects. It is useful if you need to create camera boundaries, calculate distances between player characters, the ground, walls, and other things.
I came across this article showing how to play a trackentry on a Spine2D game object within Unity.
Spine2D is a software package made by a company called Esoteric Software which we are using to create our newest game.
The code below can be used to change your Character’s animation speed during runtime.
SetAnimation(0, “animation”, true).timeScale = 0.5f;
I found this tutorial on creating a PreLoad scene in Unity for managing variables that need to carry across all Scenes (Stats, Player Variables, etc.)
I exited out of the Git terminal after pressing a command by accident. This caused an interesting error message to appear.
The way out of this is answered in this stack overflow page
My “git add .” command succeeded after navigating to the directory and removing the file in the manner suggested above.
I often find myself during development slipping back into bad practices and having to beat good ones into my head.
A good habit for game development in Unity is making prefabs. Prefabs ensure that you are following the principle of DRY.
In the case of game objects, this includes everything from Characters, Enemies, Platforms, Weapons, Scripts and anything you will have to use more than once (which in Game Development is a lot of things).
Prefabs are useful, and I am trying to force myself into writing reusable code.
Here is a short tutorial on YouTube showing How to create Prefabs in Unity.
I am also keeping a list of the tutorials I am using throughout my project on YouTube.