How to Make a Shooter Game

by Zombie_John22 in Living > Toys & Games

386 Views, 1 Favorites, 0 Comments

How to Make a Shooter Game

shooting.JPG

do you like games? of course, you do! make your own game where you can use any weapon you want! a magic wand, a gun, or even a bow and arrow!

Supplies

a computer with internet.

Go to Scratch the Website

scratch.JPG

make an account if you want to save your progress, you can also download your files to the computer. then press the create button at the top of the screen.

Make Your Player

guy.JPG

delete the cat and make a new sprite called player. you can make a new sprite by hovering over the picture with the cat and the plus sign. you may draw your character to be however you want. make sure the weapon he is holding is to the right.

Make Your Enemy

bot.JPG

repeat the last step but make this character look different, maybe arms outstretched like a zombie? or claws like a robot? wings like a dragon? get creative!

Ammo

ammo.JPG

next, make a bullet, maybe a magic blast? or a laser? or maybe lead is the way to go

Aiming

script 1.JPG
trolol.JPG

go to the player sprite and make the following script, then put this on the bullet as well. if you want the bullet behind the player, add a go-to-back-layer block, it is found in the "looks" section.

Shooting

bullet script.JPG

follow the following script.

What's going on is every time you press the space bar, the bullet is now going to clone itself and move in the direction you were pointing. when you pressed the space bar. you can change how fast the bullet moves by changing the number of steps.

Enemy Placement

bot script.JPG

follow the script

What's happening is the bot spawns on you, then from there it moves to somewhere around you then comes after you. this is a very easy way to make enemies.

Losing

die.JPG

this script makes it so if you hit the enemy you die

Score

tickets.JPG
blocks.JPG

make a new variable in bullets, make it for all sprites and call it something for the score, it could be just "score", but you could change it to manna, money, coins, points, anything you think fits.

after you do this put two variable blocks like so in the bullets script, this makes it so when you shoot a bot, you gain a point, and when you restart the game they reset

Test

shooting.JPG

test your game and make sure it works, if it doesn't follow the steps again.

Conclution

fallout shooter.JPG

I hope you like my tutorial, be sure to check out my other things, if you have questions or tips I would love to see them! a link to my shooter is here remix it if you want and please copy it if you need help. in it, there are more sprites and enemies that you can look at and learn to code.

thank you for viewing and I hope you learned something new!