Creating a custom PlayClipAtPoint functionThe AudioSource.PlayClipAtPoint() function doesn't let us have a lot of control over the Audio Source itself. So I created a custom class for this. using UnityEngine; using UnityEngine.Audio; public class AudioClipPlayer : MonoBehaviour { [Head...1 min read·theredmark.hashnode.devApr 21, 2024
Unity: Hierarchy filling up with "New Game Object" objectsWhat causes this and how to fix it2 min read·theredmark.hashnode.devApr 21, 2024
Basic tower targeting systemWhen I first released the game, the enemy targeting system for the towers in Hyper Towers was to target whoever had the least displacement to the player's base. Today, I improved it a little bit, but it works a lot better now. I'm not sure how much o...3 min read·theredmark.hashnode.devDec 5, 2023
Things I've learnedA collection of small things I've learned through the development of the tutorial level of Hyper Towers3 min read·theredmark.hashnode.devDec 4, 2023
Using script referencing rather than events and delegatesInitially, I only knew about using events and delegates to call a function from another script. I used it in all my earlier projects and this one as well. But I still don't quite understand how it works. Then I came across the other approach; Referen...1 min read·theredmark.hashnode.devDec 4, 2023