new block -- "layer"
-
Like with “x pos” and “y pos” in the motion category, you should also do the same with layering since you don’t know what layer what block is.
-
Like with “x pos” and “y pos” in the motion category, you should also do the same with layering since you don’t know what layer what block is.
@the_true_odst Please clarify.
-
@the_true_odst Please clarify.
@c,
basically a button like this but it shows the layer of the selected sprite:

-
@c,
basically a button like this but it shows the layer of the selected sprite:

Keep in mind that the layers are relative, and there is no concept of “layer 0”, “layer 1”. What do you expect the value of this new block to be?
-
Keep in mind that the layers are relative, and there is no concept of “layer 0”, “layer 1”. What do you expect the value of this new block to be?
@info-creaticode Well, I’m not exactly sure, but it should behave like the x pos/ y pos block. The “go forward/backward 1 layer” can be really confusing if there are a lot of sprites and your don’t know what their layering position is.
-
Like with “x pos” and “y pos” in the motion category, you should also do the same with layering since you don’t know what layer what block is.
@info-creaticode Looks like it’d be a reporter block called “layer” and in the Looks category near here:

For what it should return as its value, it’d be a number that is how many layers away it is from the back/very first layer. For instance, if I have a project with only 2 sprites, and in the first sprite, I rungo foward 5 layers say layerthen in the second sprite i run
go foward 10 layers say layerthen the
layervar on them should return 5 and 10.Even if the layers are relative, the backdrop can and commonly is used as the 0th layer, which is what the layer block would use as its reference layer.
-
@info-creaticode Well, I’m not exactly sure, but it should behave like the x pos/ y pos block. The “go forward/backward 1 layer” can be really confusing if there are a lot of sprites and your don’t know what their layering position is.
That’s true. It can be hard to use when there are many different layers.
How about 2 new blocks?
-
go to layer [LAYER]: LAYER can be any number between 0 and 100
-
my layer: a reporter block for current layer
-
-
That’s true. It can be hard to use when there are many different layers.
How about 2 new blocks?
-
go to layer [LAYER]: LAYER can be any number between 0 and 100
-
my layer: a reporter block for current layer
@info-creaticode That sounds good!
-
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login