Navigation

    CreatiCode Scratch Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • CreatiCode

    new block -- "layer"

    Feedback
    4
    8
    686
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • TNG
      The Nickname Gov. Best Forum Helpers last edited by

      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.

      I'm back to my OG user! I love this updated pfp so I'm going to use it for The Nickname Gov.

      c. jeffreyrb03-gmail 2 Replies Last reply Reply Quote 1
      • c.
        Cαƚƚყ Mod Helper @TNG last edited by

        @the_true_odst Please clarify.

        Official Forums Moderator - Resigned.

        TNG 1 Reply Last reply Reply Quote 0
        • TNG
          The Nickname Gov. Best Forum Helpers @c. last edited by

          @c,
          basically a button like this but it shows the layer of the selected sprite:
          4dba1a30-30f0-4b4a-adcf-5a5e3f9daf80-image.png

          I'm back to my OG user! I love this updated pfp so I'm going to use it for The Nickname Gov.

          info-creaticode 1 Reply Last reply Reply Quote 0
          • info-creaticode
            CreatiCode @TNG last edited by

            @the_true_odst

            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?

            TNG 1 Reply Last reply Reply Quote 0
            • TNG
              The Nickname Gov. Best Forum Helpers @info-creaticode last edited by

              @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.

              I'm back to my OG user! I love this updated pfp so I'm going to use it for The Nickname Gov.

              info-creaticode 1 Reply Last reply Reply Quote 0
              • jeffreyrb03-gmail
                JaecadeJnight Mod Helper @TNG last edited by

                @info-creaticode Looks like it’d be a reporter block called “layer” and in the Looks category near here:
                0eb88e36-542c-4a54-af38-ea7a5717ca4e-image.png
                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 run

                go foward 5 layers
                say layer
                

                then in the second sprite i run

                go foward 10 layers
                say layer
                

                then the layer var 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.

                #LLJW
                <span style="color:white;background-image:linear-gradient(to right, lightblue, navy)">My name is Jeff</span>

                1 Reply Last reply Reply Quote 0
                • info-creaticode
                  CreatiCode @TNG last edited by

                  @the_true_odst

                  That’s true. It can be hard to use when there are many different layers.

                  How about 2 new blocks?

                  1. go to layer [LAYER]: LAYER can be any number between 0 and 100

                  2. my layer: a reporter block for current layer

                  TNG 1 Reply Last reply Reply Quote 1
                  • TNG
                    The Nickname Gov. Best Forum Helpers @info-creaticode last edited by

                    @info-creaticode That sounds good!

                    I'm back to my OG user! I love this updated pfp so I'm going to use it for The Nickname Gov.

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post