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

#1 2010-08-10 15:33:25

shadow_7283
Scratcher
Registered: 2007-11-07
Posts: 1000+

Where are the sensing block specs?

So. I'm trying to make a game, but I need to be able to put a reporter block in the sprite section of [set [sprite] to [value] ]. I tried hacking the variable specs and putting a %s in that part of the block's specs, but that also caused the [value] part to only accept numbers. Plus, it wouldn't be useful if I wanted the drop down list.

Then I remembered you can put a reporter in the second blank of the sensing ([] of []) block. So I was trying to find the %* for that particular type of input.

So can someone help me find the sensing block specs? Or even give me the %* that I need?

Offline

 

#2 2010-08-10 15:40:56

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: Where are the sensing block specs?

Sensing block specs: Scratch-Objects > ScratchSpriteMorph (class) > block specs > blockSpecs (you have to scroll down a bit)

string input: %s

and while I'm at it, why not list other inputs:

boolean = %b
string = %s
number = %n
variables = %v
broadcasts = %e
color picker = %c or %C

there are more, I just don't want to post them right now.

Last edited by ScratchReallyROCKS (2010-08-10 15:44:29)


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#3 2010-08-10 15:47:00

shadow_7283
Scratcher
Registered: 2007-11-07
Posts: 1000+

Re: Where are the sensing block specs?

ScratchReallyROCKS wrote:

Sensing block specs: Scratch-Objects > ScratchSpriteMorph (class) > block specs > blockSpecs (you have to scroll down a bit)

string input: %s

and while I'm at it, why not list other inputs:

boolean = %b
string = %s
number = %n
variables = %v
broadcasts = %e
color picker = %c or %C

there are more, I just don't want to post them right now.

Thanks! I always forget that they put the sensing blocks in the seperate Sprite and Stage morphs. Even though they have mostly the same blocks.

And the input I was looking for was %m. It wasn't exactly what I expected, but it'll do the job.

Offline

 

#4 2010-08-10 15:49:16

shadow_7283
Scratcher
Registered: 2007-11-07
Posts: 1000+

Re: Where are the sensing block specs?

Actually, come to think of it that doesn't really work. I really need a custom input.

The problem with %m is that, although it lets me have a reporter input if I want, the drop down box displays the sprites, not the variables.  hmm

Offline

 

#5 2010-08-10 16:10:25

shadow_7283
Scratcher
Registered: 2007-11-07
Posts: 1000+

Re: Where are the sensing block specs?

*bump*

Offline

 

#6 2010-08-10 16:47:58

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: Where are the sensing block specs?

Just edit the acceptsTypeOf: of SpriteArgMorph.


nXIII

Offline

 

#7 2010-08-10 18:56:54

shadow_7283
Scratcher
Registered: 2007-11-07
Posts: 1000+

Re: Where are the sensing block specs?

What exactly do I change?

Offline

 

#8 2010-08-10 20:09:42

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: Where are the sensing block specs?

a dropdown that displays sprites? That's just %m.


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#9 2010-08-10 23:33:17

shadow_7283
Scratcher
Registered: 2007-11-07
Posts: 1000+

Re: Where are the sensing block specs?

ScratchReallyROCKS wrote:

a dropdown that displays sprites? That's just %m.

Why do you keep repeating the things I've already said?

Offline

 

#10 2010-08-13 14:40:40

bbbeb
Scratcher
Registered: 2009-06-11
Posts: 1000+

Re: Where are the sensing block specs?

To display variables?

Do as NXIII said.

(almost says use %v- that cant hold reporters..)


Back in my day.... there were no laws that censored the internet... now, there are.... nah.

Offline

 

#11 2010-08-13 14:42:22

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: Where are the sensing block specs?

shadow_7283 wrote:

ScratchReallyROCKS wrote:

a dropdown that displays sprites? That's just %m.

Why do you keep repeating the things I've already said?

I tend to answer without looking at other posts. Sorry.


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#12 2012-09-21 17:37:42

connormonster1220
Scratcher
Registered: 2012-05-20
Posts: 10

Re: Where are the sensing block specs?

You go to scratchspritemorph instead of scripptiblescratchmorph.Then you do the same as if you went to scripptiblescratchmorph.

Offline

 

#13 2012-09-22 11:52:43

shadow_7283
Scratcher
Registered: 2007-11-07
Posts: 1000+

Re: Where are the sensing block specs?

Please don't bump up really old topics.  smile

Offline

 

Board footer