Hello! Today I will tell you how to make a basic shooter game.
First of all, Make a crosshair. Leave a space directly in the middle of it. Just do it. Trust me.
Now, for this next part, there are two ways to do this. If you want the crosshair to follow your mouse, go to (1.) If you want it to follow the arrow keys, (You know, when you click the left mouse button, it goes left, ect.) then go to (2.)
(1.) First of all, go to Control, then drag in the command, <when green flag clicked>
into the scripts section for your sprite, the crosshair. Then put in <forever>
<end>
under the 1st one. Then insert the command
<go to x )y Inbetween forever. For x, put in <mouse x> For y, put in <mouse y>
Also, put in <go to front> if you put the space in the middle of the corsshair.
Then, when you hit the green flag, it should follow your mouse.
(2.) (optional) Put in <when[ ]key pressed> from command. Then put in up arrow, right arrow, left arrow, or down arrow. Then put in <move( 10 )steps> You can change the speed if you want. Put that in for all the other arrows too.
Now you have to make targets. Make a sprite, any sprite, It won't matter. Then put in the commands <when green flag clicked> from commands, under that put
<go to x 0 )y 0 Then put in <when[ Target or what ever you named it ]clicked>
from commands, under that put
<go to x <pick random( 200 )to( -200 )y <pick random( 170 )to( -170
The green ones are from Numbers, and you can put them in the box from motion.
That's my tutorial! If you don't get it, go to
http://scratch.mit.edu/projects/Oneandonly/404079
and download it. It has basicly everything I have just said in it.
ThAnKs!
Last edited by Oneandonly (2009-02-15 18:57:58)
Offline
If anyone found this helpful, please respond!
<move( 1 )steps> and comment!
Offline
Important! If You Didn't Add The Little Space Inbetween The Crosshair In The Middle, It's Going To Be A Little Messed Up.
Offline
Oneandonly wrote:
Important! If You Didn't Add The Little Space Inbetween The Crosshair In The Middle, It's Going To Be A Little Messed Up.
My apologies, but I don't like When You Capitalize Every Word Like This.
However, it's great to see a new member contributing their knowledge! In the future, please put posts like this in the "All About Scratch" section of the forums.
Offline
big-bang wrote:
Oneandonly wrote:
Important! If You Didn't Add The Little Space Inbetween The Crosshair In The Middle, It's Going To Be A Little Messed Up.
My apologies, but I don't like When You Capitalize Every Word Like This.
However, it's great to see a new member contributing their knowledge! In the future, please put posts like this in the "All About Scratch" section of the forums.
I'm Very Sorry Big-Bang For The Annoyance. Hope You Can Forgive Me
Offline
bosox397 wrote:
big-bang wrote:
Oneandonly wrote:
Important! If You Didn't Add The Little Space Inbetween The Crosshair In The Middle, It's Going To Be A Little Messed Up.
My apologies, but I don't like When You Capitalize Every Word Like This.
However, it's great to see a new member contributing their knowledge! In the future, please put posts like this in the "All About Scratch" section of the forums.I'm Very Sorry Big-Bang For The Annoyance. Hope You Can Forgive Me
Lol, I was doing all caps, but it didn't turn out TOO well...
Offline