Greetings, my name is Tim. I got a project in school and to get to the higher grades I need to create a script for a bomb for a space shooter game. I also see this as great practice because I will be starting to create games on my own in unity soon enough. Knowing how to make an okay script would be pretty helping ^^
So, I want to create a script for a 2d space shooter game. I already created the bomb in maya/photoshop, and imported it into unity. Then I also added a java script to it and the only thing left to do is to edit the script. This is what I don't know how to do. I dont know how to script but I would love to learn.
Bomb functions: The bomb should spawn at a random position in X and go towards -y (bottom) and if this bomb colide with the player bullet (if the player will shoot at the bomb) the bomb shall explode, doing a very simple anymation since I'm only interested in the scripting part. When the bomb explode every enemy on the screen shall also be destroyed. Since it is a bomb :) If the player dont shoot at the bomb and the bomb travels part the screen it shall disappear.
If anyone could help me create this script It would be awesome! Giving me hints on tutorials, or just step to step on how to do it in person would be great aswell. I will be using the search functions while waiting for answers but I think I will get better answers here than out in the infinit space of the internet. That is why I created this thread!
So help me take this first step into scripting in unity, to create my first script! Be the one that I shall remember that helped me create my first script! hehe
Thanks in advance//a future unity user!