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

#1 2010-07-13 20:14:06

Bob1234567890X
New Scratcher
Registered: 2010-07-13
Posts: 2

Hello

I'm Bob... got bored today and decided to play around with scratch.  I've got a basic movement script set up, but I have a question.  How do I make something shoot bullets?  Thanks.


___________________________

Since there's a rule against signatures before 15 days is up -_- , I'll put it here. 

BWOB ANGRY

BWOB SMASH

http://www.minethings.com/miners/index/+3923

Offline

 

#2 2010-07-13 20:54:28

Flait7
Scratcher
Registered: 2008-04-14
Posts: 100+

Re: Hello

Welcome to scratch! And bullets can be made two ways, that i can think of right away.

One way would be to make the bullets entirely different sprites, and make them move by using a certain key (ex. space) as a trigger, to fire the bullet
<when[ space ]key pressed>
<move(x)steps>

Or you can put it into the costume of the gun, or whatever's shooting the bullets
<when[ space ]key pressed>
<next costume>

I hope this helps  smile

Last edited by Flait7 (2010-07-13 20:55:23)


http://scratch.mit.edu/static/projects/Flait7/2248016_sm.pnghttp://scratch.mit.edu/static/projects/Flait7/1827934_sm.png

Offline

 

#3 2010-07-13 20:59:23

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Hello

Welcome to Scratch! To add onto what Flait7 said, maybe you could look at Paddle2See's Trigonometry cannon and Archmage's Trig-less cannon as examples.

Offline

 

#4 2010-07-13 21:36:33

Bob1234567890X
New Scratcher
Registered: 2010-07-13
Posts: 2

Re: Hello

what about multiple bullets?

Offline

 

Board footer