Next we needed to fix the problem of projectiles flying through the animals when they connect with eachother. Using colliders and checking the "Is Trigger" button we created an interaction between the animals and the projectiles, in the next step we added code to turn that interaction into the deletion of the animal. Finally we use code to trigger a pop-up game over screen should an animal make it past the player, and with that our space invader/farm animal game is functional.
We also had bit of challenger to do for this weeks tutorials, this was pretty much to make with the same concept as the one we've been working on, but with a different arrangement, this mainly consisted of reusing what we had just learned but it was cool to see how we can make different looking games using the same mechanics.
"Fetch Game"
Source Unity
No comments:
Post a Comment