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

#1 2011-02-12 16:16:22

nuju2542
New Scratcher
Registered: 2010-12-05
Posts: 3

How to get a bullet to work?

I'm making a game and I want the bullet to shoot when I press the space bar, and it should go in the direction the character is facing.  smile

Offline

 

#2 2011-02-12 16:22:06

KMilka
Scratcher
Registered: 2010-10-21
Posts: 100+

Re: How to get a bullet to work?

do <point towards( "character")><turn (180) degrees>

Last edited by KMilka (2011-02-12 16:22:38)


http://projecteuler.net/profile/milkan8tor.png
http://imgur.com/epxJD.png

Offline

 

#3 2011-02-13 00:45:01

floppy_gunk
Scratcher
Registered: 2008-11-14
Posts: 500+

Re: How to get a bullet to work?

nuju2542 wrote:

I'm making a game and I want the bullet to shoot when I press the space bar, and it should go in the direction the character is facing.  smile

[blocks]
<forever if><key[ space ]pressed?>
<point towards( character
<repeat until> << touching character and whatever >>
<move( speed )steps>
<end>
<end>
[/blocks]


http://img163.imageshack.us/img163/1917/2856lg.jpg Get it now!  smile

Offline

 

Board footer