Project RBH Devlog 0082 (Patreon)
Content
Never underestimate the power of reusing existing code.
The idea here is functionally the same as what the bullet does when it spawns in something when it’s destroyed; creating an object or objects based on a variable or variable array. And since I’d already done this before once, making it so that the dodge code can spawn in objects was remarkably easy. I even set it up so that the array is in my game manager object so that I can easily adjust it via the upgrade system.
There was however a strange issue and I’m unsure of the cause. Even though I’m using a For Loop—which runs a set number of times—it spawns in a decoy every frame unless I specify that it should only make a decoy if none exist.
Behold, my clone army.
I also made them explode because Haelerin suggested it and I figured it would be easy. It was. Same code as my bomb object.
Until next Devlog!
-DeusVerve
DevLogs like these are brought to you by Patron(s) like Haelerin!