Join my Discord Server to discuss this project/video: discord.gg/4XEwwqaVf9
In this video we'll be creating Bombombomb or Bombomb for short. Just make sure you don't say that on an airplane! So what does Bombomb do? It launches vertically and explodes releasing four shrapnel pieces that also explode when they collide with the ground. Bombomb and the shrapnel can hurt Mega Man if he touches them but the explosions cause him no damage. My Bombomb is composed of three pieces: a Launcher, Bombomb itself, and a Shrapnel. Each of these pieces attaches a single C# script. There is a type setting that will dictate what code the script will execute. If it's set to Launcher then it will instantiate a Bombomb a launch it. If it's set to Bombomb it will explode and instantiate four Shrapnels and launch those. If it's set to Shrapnel then it doesn't do anything but check if they collide with the ground and explode. I added a lot of public methods to the script so you can control Bombomb in realtime through code -- making it very dynamic. Oh yeah, and it comes in two colors blue and red.
Source code for this project can be found on my GitHub: github.com/tonybhimani/unity-megaman-tutorials
and you can see my other videos for the main project here: • Unity Mega Man Development
Enjoy!
コメント