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

#1 2009-03-04 23:03:47

Xzeleous
Scratcher
Registered: 2009-02-27
Posts: 24

How can I make a sprite Fire a Projectile?

What would be the simplest way to get "sprite1" to fire "sprite3" vertically at a somewhat slow speed? Ive been experimenting and just cant do it.

All help is greatly appreciated  big_smile


Anaglyphic US Constitution Animation: http://scratch.mit.edu/projects/Xzeleous/729698

Offline

 

#2 2009-03-04 23:46:51

adityasm9
Scratcher
Registered: 2008-03-12
Posts: 100+

Re: How can I make a sprite Fire a Projectile?

Xzeleous wrote:

What would be the simplest way to get "sprite1" to fire "sprite3" vertically at a somewhat slow speed? Ive been experimenting and just cant do it.

All help is greatly appreciated  big_smile

you could try a broad cast, make sprite 1 broad cast "fire"
and do this to sprite3

[blocks]<when I receive[ fire
<go to[  sprite1
<show>
<repeat until><touching[ edge
<change y by(  1
<forever if><touching[ edge
<hide>
<end>
[/blocks]

if you want it faster, just make the "change y by" value more

hope this helps^_^

Last edited by adityasm9 (2009-03-04 23:48:06)

Offline

 

#3 2009-03-05 06:59:22

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

Re: How can I make a sprite Fire a Projectile?

and the broadcast block would look like this



<broadcast[  ]and wait c>

Last edited by bosox397 (2009-03-05 07:00:08)


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

 

#4 2009-03-05 08:54:02

adityasm9
Scratcher
Registered: 2008-03-12
Posts: 100+

Re: How can I make a sprite Fire a Projectile?

bosox397 wrote:

and the broadcast block would look like this



<broadcast[ fire  ]and wait c>

no it would look like that  lol

Last edited by adityasm9 (2009-03-05 08:54:28)

Offline

 

Board footer