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

#1 2007-12-10 18:39:27

McJR94
Scratcher
Registered: 2007-12-10
Posts: 1

need basic projectile script.

I need a script so my sprite 1 will shoot an arrow or fire a catapolt!!!

Please help!!

Last edited by McJR94 (2007-12-10 18:41:38)

Offline

 

#2 2007-12-11 20:44:13

hmnwilson
Scratcher
Registered: 2007-07-04
Posts: 1000+

Re: need basic projectile script.

This would be for sprite1:
[blocks]
<when[ space ]key pressed> (or whatever you want to happen)
<broadcast[ shoot
[/blocks]
This would be for the projectile sprite:
[blocks]
<when I receive[ shoot
<go to[ sprite1
<show>
<repeat until> something happens
<move( # )steps>
<end>
<hide>
[/blocks]


I'm taking a break from Scratch until 2.0 comes out. Any messages sent between then and now probably won't be read - sorry.
(Oct. 20, 2011)

Offline

 

Board footer