Posted May 25, 2024 by Ee3eEe
Many things have been happening under the hood, I've successfully made missiles and fully implemented the spawner. Let's talk about it.
One of the key features that occurred from the 4. A is that missiles didn't work. I believe I have successfully found the cause. To explain it I will reiterate how the game is built.
The majority of the game is run through the camera object. Most objects including the player and the spawner are tied to this. Now a feature of the spawner, is that when it spawns an object as it currently stands, I cannot send information about the player to a missile it spawns. How I discovered this, was when doing some debugging to figure out why the missiles did not track.
I found that the current assumption I had, that assigning values, via passing in objects in the Prefab menu. (For non-unity peeps, connecting two objects basically.)
This did not persist for the spawned missiles, for reasons I don't know. But I recalled a similar project called Rocket Pong, which you can play right now!
https://ee3eee.itch.io/rocket-pong
In rocket pong, I made an AI bot, that closely followed the player, by having the object constantly update the variable that holds the position of Ball.
Now, these last two devlogs have been a bit all over the place, but fret not. I shall return to a bit of normalcy with a formal devlog, going game testing, and the final bits of development!
See you there!