How do we get a name of objects?
It would look like this
How do we get a name of objects?
It would look like this
1:
This works different?
Yea
(Costume name) of (my costume) doesn’t work, but that does
Um, it does work for me?
That’s what imnsaying
I think @cookieclickerer33 meant the following:
Imagine that you have a sprite with a costume named "Smiley".
the bad way
Is there any other way? The reason why I posted that, was because the title mentions getting the name of a sprite, yet no one here has given a solution to that.
I asked about getting a name of object, not about getting a name of sprite object. I also wanted to learn if there is any other way to do that
What do you mean, an object? Like {foo: "bar"}??
Im not sure if i understand what foo bar is, by object i mean 3 types, sprites, costumes, sounds, the input would take object, and give a name of object we placed in input
Name of Sprite:
Name of costume:
Name of sound:
You can trivially write that using the IS _ A _ ? block to find out which kind of object your input is.
I can, in fact i do, i just thought there might be some other way
There is a deep idea behind the syntactic differences. Costumes and sounds are passive objects: they can't run blocks. Only sprites and the stage are active objects, a/k/a actors, a/k/a agents. (Yeah, the stage breaks the actor metaphor.) So, in particular, only actors can run the MY block, as in MY NAME. To find the name of a passive object, you have to get an active object to run a block along the lines of _ OF COSTUME _.