Discuss Scratch

PH-zero
Scratcher
100+ posts

The customname-reporter block

Currenty, you can use the (|customname| of |Sprite2|) to return a string,
wich is the name of the current custom of Sprite2.

Let's say this script is located at Sprite1, then, you can't choose Sprite1…. logically…

Logically because there is a customanme reporter block right at Sprite1… wait.. oh.. actually… there isn't!

This block should be there because.. you can also choose (|customnumber| of |Sprite2|)
But again, not Sprite1 because there is a customnummer-reporter.

Got it? I would be really glad if the ST would fix this…


Support___________________________________
DadOfMrLog

Last edited by PH-zero (Aug. 11, 2013 21:58:58)

Zparx
Scratcher
500+ posts

The customname-reporter block

I thought there wasn't a customname reporter for the sprite you need the customname from, because the customname is/are the various reporters and variables that you can use already within that sprite instead?
PH-zero
Scratcher
100+ posts

The customname-reporter block

I thought there wasn't a customname reporter for the sprite you need the customname from, because the customname is/are the various reporters and variables that you can use already within that sprite instead?

I think I know what you mean. But i have no variable for the customs. The customname is the variable.
Of course I could fix this, but 1. I don't want an extra variable and 2.
Don't having access to the own customname, but to all others donsn't make very sense?
Or am i wrong…?

Last edited by PH-zero (Aug. 11, 2013 18:48:23)

DadOfMrLog
Scratcher
1000+ posts

The customname-reporter block

Yeah, a costume name reporter for the current sprite is currently AWOL. It doesn't make much sense to have it available for the other sprites, but not the one you're actually in.

Now having said that, it is simple enough to use the more general reporter to get the costume name for the current sprite by setting it to the sprite you want within another sprite and then dragging it across to the sprite you want (i.e. In sprite 2 you do “costumename of sprite 1”, and then drag-n-drop it into sprite 1). -TBH, I find the fact that you can do that makes it seem even more like it's missing…

There was a topic on this a while back where this workaround was noted, and Paddle2See closed the topic saying there's a workaround, so a costumename reporter wasn't really needed. And we've had the costume-name topic even more recently, too: http://scratch.mit.edu/discuss/topic/12273/

Unfortunately, the situation has changed since Paddle2See closed that topic - v2.0 is out and has clones…
MrLog pointed out to me that the workaround won't work if you want to get the costume name for a clone (since that reporter only gives the costume for the original sprite).

Of course, you can always keep a list of costume names and then use the costume# reporter to get the name. But that does kinda rely on you never changing the order of your costumes, and never inserting new costumes - without forgetting to do the same for your list - and it's a bit annoying to have to use a list for something that seems so… basic.

On the whole, then, I find it odd not to have it. (And we do also have the corresponding reporter for the backdrop.)
I guess I could summarise all of the above by saying:

+1

Last edited by DadOfMrLog (Aug. 11, 2013 21:17:42)

Powered by DjangoBB