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

#1 2008-06-12 14:27:58

subzero4
Scratcher
Registered: 2008-04-20
Posts: 5

How do you make machine guns?

For my game in the making, I want to have a machine gun, but I don't know how to make it so when I hold down the mouse, it fires. Thanks for your help!

Offline

 

#2 2008-06-12 14:36:11

Freestylin_Monkey
Scratcher
Registered: 2008-03-24
Posts: 100+

Re: How do you make machine guns?

I am guessing forever loop with multiple bullets, but just to be safe, look here

http://scratch.mit.edu/projects/m44/167193


I am Lord of Lords, I am King of Kings, I AM MASTERS OF ALL MASTERS!!!
-But I am a servant of my mother

Offline

 

#3 2008-06-12 17:05:26

subzero4
Scratcher
Registered: 2008-04-20
Posts: 5

Re: How do you make machine guns?

Thanks. I think that will help. And also, I looked at your project, and you have 2 costumes for the gun. Delete the second one, and click the button near the top of the screen above the costumes that looks like this: <-->    Then you won't need 2 costumes for the gun.  big_smile

Offline

 

#4 2009-09-10 22:57:43

Brass45
Scratcher
Registered: 2009-05-03
Posts: 500+

Re: How do you make machine guns?

Make multiple bullet sprites(At least 10),and give each this script
<when green flag clicked>
<hide>
<when green flag clicked>
<forever if><< <mouse down?> <and> <(  <{ Shoot? }><=> 0 )> >>
<wait(0.1 )secsc>
<change{ Shoot? }by( 1)>
<go to[ machine gun]>
<point in direction( direction of machine gun)>
<show>
<repeat until><touching[ edge]>
<move( 10 )steps>
<hide>
<when green flag clicked>
<forever if><( <{ Shoot? }> <>> 10 )>
<set{ Shoot? }to( 0)>


http://img412.imageshack.us/img412/4593/ubd1591.png<--Our website(click)
http://static.zooomr.com/images/8884671_b196719ffa_o.png<--If this image looks interesting,then click it to see an exclusive sneak peak of Evil Strings newest game:DarkLight

Offline

 

Board footer