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
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)
Offline
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
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.
Offline
*bump*
Offline
What exactly do I change?
Offline
ScratchReallyROCKS wrote:
a dropdown that displays sprites? That's just %m.
Why do you keep repeating the things I've already said?
Offline
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.
Offline
You go to scratchspritemorph instead of scripptiblescratchmorph.Then you do the same as if you went to scripptiblescratchmorph.
Offline
Please don't bump up really old topics.
Offline