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

#1 2012-01-22 01:06:15

CatPerson
Scratcher
Registered: 2011-12-17
Posts: 1000+

when sprite # pressed

I see the block in the control section saying when sprite # pressed. What if you just changed that block so that it could say different boxes???


http://nyopoliticker.files.wordpress.com/2012/02/in_dog_we_trust_rusty.jpghttps://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcSrxH2RAmte9adghivuoOhgklIlUcZUFuCAA0wFufFq-NWyZWg5http://www.buttonsonline.com/2012/obama/BO-rallysign-104.gif

Offline

 

#2 2012-01-22 04:24:15

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: when sprite # pressed

do you mean like a dropdown menu to select sprites?


http://i.imgur.com/1QqnHxQ.png

Offline

 

#3 2012-01-22 10:44:07

CatPerson
Scratcher
Registered: 2011-12-17
Posts: 1000+

Re: when sprite # pressed

TRocket wrote:

do you mean like a dropdown menu to select sprites?

Ya!  smile


http://nyopoliticker.files.wordpress.com/2012/02/in_dog_we_trust_rusty.jpghttps://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcSrxH2RAmte9adghivuoOhgklIlUcZUFuCAA0wFufFq-NWyZWg5http://www.buttonsonline.com/2012/obama/BO-rallysign-104.gif

Offline

 

#4 2012-01-22 11:39:43

owetre18
Scratcher
Registered: 2009-07-01
Posts: 1000+

Re: when sprite # pressed

CatPerson wrote:

I see the block in the control section saying when sprite # pressed. What if you just changed that block so that it could say different boxes???

When sprite [sprite] clicked is already a block. Look in controls.

Offline

 

#5 2012-01-22 11:56:00

CatPerson
Scratcher
Registered: 2011-12-17
Posts: 1000+

Re: when sprite # pressed

owetre18 wrote:

CatPerson wrote:

I see the block in the control section saying when sprite # pressed. What if you just changed that block so that it could say different boxes???

When sprite [sprite] clicked is already a block. Look in controls.

I mean where you can choose different sprites -_- you know how on like "when (blank) key pressed" where you can choose from a veriety of keys??? I mean a block that says when (a different sprite or this sprite) pressed  -_-


http://nyopoliticker.files.wordpress.com/2012/02/in_dog_we_trust_rusty.jpghttps://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcSrxH2RAmte9adghivuoOhgklIlUcZUFuCAA0wFufFq-NWyZWg5http://www.buttonsonline.com/2012/obama/BO-rallysign-104.gif

Offline

 

#6 2012-01-22 12:49:54

RedRocker227
Scratcher
Registered: 2011-10-26
Posts: 1000+

Re: when sprite # pressed

But what would be the point of that? Booleans are supposed to be about the sprite that it's on, not other sprites. Plus, this can be easily done using variables.


Why

Offline

 

#7 2012-01-22 12:57:14

CatPerson
Scratcher
Registered: 2011-12-17
Posts: 1000+

Re: when sprite # pressed

RedRocker227 wrote:

But what would be the point of that? Booleans are supposed to be about the sprite that it's on, not other sprites. Plus, this can be easily done using variables.

Cuase sometimes I want a sprite to do something when another sprite is pressed -_-


http://nyopoliticker.files.wordpress.com/2012/02/in_dog_we_trust_rusty.jpghttps://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcSrxH2RAmte9adghivuoOhgklIlUcZUFuCAA0wFufFq-NWyZWg5http://www.buttonsonline.com/2012/obama/BO-rallysign-104.gif

Offline

 

#8 2012-01-22 13:09:51

Sausagefanclub
Scratcher
Registered: 2011-08-31
Posts: 500+

Re: when sprite # pressed

CatPerson wrote:

RedRocker227 wrote:

But what would be the point of that? Booleans are supposed to be about the sprite that it's on, not other sprites. Plus, this can be easily done using variables.

Cuase sometimes I want a sprite to do something when another sprite is pressed -_-

That's simple:
<when[Sprite1]clicked>
<broadcast[something]>

Last edited by Sausagefanclub (2012-01-22 13:11:03)


http://sausagepages1185.weebly.com/uploads/1/4/1/5/14153465/446452.png?525

Offline

 

#9 2012-01-22 13:10:48

RedRocker227
Scratcher
Registered: 2011-10-26
Posts: 1000+

Re: when sprite # pressed

CatPerson wrote:

RedRocker227 wrote:

But what would be the point of that? Booleans are supposed to be about the sprite that it's on, not other sprites. Plus, this can be easily done using variables.

Cuase sometimes I want a sprite to do something when another sprite is pressed -_-

Just use broadcasts.

When Sprite1 clicked
Broadcast Sprite1 clicked

When I receive Sprite1 clicked
[Rest of script]


Why

Offline

 

#10 2012-01-22 14:37:03

CatPerson
Scratcher
Registered: 2011-12-17
Posts: 1000+

Re: when sprite # pressed

But its soo it could make it easier. but whateves.


http://nyopoliticker.files.wordpress.com/2012/02/in_dog_we_trust_rusty.jpghttps://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcSrxH2RAmte9adghivuoOhgklIlUcZUFuCAA0wFufFq-NWyZWg5http://www.buttonsonline.com/2012/obama/BO-rallysign-104.gif

Offline

 

Board footer