This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2009-02-08 21:04:11

Oneandonly
Scratcher
Registered: 2009-02-07
Posts: 100+

[TUT] How to make a basic shooter game [TUT]

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 sad   )y sad   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 sad  0 )y sad  0   Then put in   <when[ Target or what ever you named it ]clicked> 
from commands, under that put 
         
           <go to x sad  <pick random( 200 )to( -200 )y sad  <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

 

#2 2009-02-12 19:37:39

Oneandonly
Scratcher
Registered: 2009-02-07
Posts: 100+

Re: [TUT] How to make a basic shooter game [TUT]

If anyone found this helpful, please respond!

<move( 1 )steps> and comment!

Offline

 

#3 2009-02-15 18:55:18

Oneandonly
Scratcher
Registered: 2009-02-07
Posts: 100+

Re: [TUT] How to make a basic shooter game [TUT]

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

 

#4 2009-02-15 19:02:22

big-bang
Scratcher
Registered: 2008-02-21
Posts: 1000+

Re: [TUT] How to make a basic shooter game [TUT]

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.


http://i47.tinypic.com/6edrbm.jpghttp://i45.tinypic.com/dw9hmw.jpghttp://i50.tinypic.com/f28tvn.jpghttp://i45.tinypic.com/ruwaop.jpg

Offline

 

#5 2009-02-15 19:55:17

bosox397
Scratcher
Registered: 2008-02-17
Posts: 1000+

Re: [TUT] How to make a basic shooter game [TUT]

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
tongue




cool


Dear Scratch Users,
I'm done with scratch, or at least making projects. I have made one last big game, thats both fun and teaches a lesson about water. It'd mean a lot if you gave me feedback.                              http://scratch.mit.edu/projects/bosox397/569201

Offline

 

#6 2009-02-21 12:14:32

Oneandonly
Scratcher
Registered: 2009-02-07
Posts: 100+

Re: [TUT] How to make a basic shooter game [TUT]

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
tongue




cool

Lol, I was doing all caps, but it didn't turn out TOO well...

Offline

 

Board footer