Cosmic Shooter in Scratch
by koshinyavikramaaditya in Circuits > Software
306 Views, 1 Favorites, 0 Comments
Cosmic Shooter in Scratch
Hello, my name is Koshinya Vikramaaditya Guddeti and this is a scratch shooter game I have made the link is below:
https://scratch.mit.edu/projects/806176561
Supplies
Scratch, Google chrome, Laptop, and Wi-Fi
Creating Graphics
So in the first step I had to create some graphics such as this black hole and some text namely ,' Game Over you have failed to protect the Cargo.' or 'Skip Tutorial' I also made ,'Well done Cadet, you have managed to holed them off long enough, YOU WIN!' and the last sprite I created was ' Start'
Adding In-built Sprites
In step 2 I added some in built scratch sprites such as ghost, Frank and Giga
Making Giga Explain What to Do
In step 3 I decided to make a character explain the Tutorial to you instead of just making a plain old instructions button which would lead you to just some boring text this seemed more interactive to me, when you click the start button Giga will glide from the top to the bottom inspired from Star Trek's ,"Beam me up" and then he proceeds to tell you that you have crashed somewhere with precious cargo a contained black hole and all the weapons on your ship are broken except a turret which you must use to fend off aliens who will try and attempt to capture the black hole, there are 2 types of aliens one is a green one which will keep growing bigger in size because it is running to you to destroy you and there will be 2 other aliens who will try and capture the black hole if they touch it, it's game over.
Variables
I have created one variable :time until backup arrives
time until backup arrives is the timer until you win
Adding a Timer, Making Sprites Move and What Happens If They Are Clicked and Sounds
I made a timer which Giga explains is the amount of time until backup arrives which makes you win and I made the code so that the aliens spawn at fixed locations and when they are clicked they go to a domain of fixed positions the code is shown above.
Messages
Hiding :I have made a message called hide which is broadcasted when the green flag is clicked it hides all other sprites except Giga and the skip tutorial button.
Play: This message is broadcasted either when skip tutorial is clicked or Start is clicked it will hide skip tutorial and Giga and start then it also stops Giga from continuing saying anything it will load the sprites and begin the game after it switches up the background.
ghost touched cargo: This message is broadcasted when a ghost touches the cargo or the green monster grows to a big size, it will hide all sprites and stop all scripts in other sprites and change the background to the default background and show the sprite game over.
Stop Bobo: This is broadcasted when the skip tutorial button is clicked and it will stop all scripts in Giga.
Show menu: this message is broadcasted when Giga stops speaking and it shows the start button
hidden again turret: this message is pretty much useless and it isn't broadcasted by anyone.
win: This message is broadcasted when the time until backup arrives is equal to 0 and it switches it to the default background and stops all scripts after showing the sprite, 'Well done Cadet, you have managed to holed them off long enough, YOU WIN!'
My Project
The link to my project is below :
https://scratch.mit.edu/projects/806176561