Navigation

    CreatiCode Scratch Forum

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

    "delete all clones" block

    Feedback
    6
    9
    1153
    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.
    • TAO
      The Ancient One trusted helpers last edited by

      This would be very helpful for deleting all the clones.

      jeffreyrb03-gmail MoxOnTheRox 2 Replies Last reply Reply Quote 0
      • artisilv
        ꒰ Artisilv ꒱ Mod Helper last edited by

        @the_true_odst
        Couldn’t you make a block that runs without screen refresh with the following code:

        forever
           delete this clone
        end
        

        right?

        Forums Moderator.
        Trans girl :3 ~ 14yo
        Friendly and sometimes goofy!!
        "And you never listened to me, and that's the thing I tell the others. You were my harlequin bride, I was your undercover lover, but no." - Gethsemane ~ Sleep Token

        Tyller_ 1 Reply Last reply Reply Quote 0
        • Tyller_
          Tyller_ trusted helpers @artisilv last edited by

          @c no, you would do

          when I recieve broadcast “delete clones”
          -delete this clone

          because that forever and delete would only run under hte main sprite

          <div component="post/signature" data-uid="255" class="post-signature">Check out my chat room project so you ppl can not use forums as chat rooms! https://play.creaticode.com/projects/66f2e1dcd1be43d82b886fbd?version=1 <p dir="auto">
          </div>

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

            @The_True_Odst

            Here is a complete example:

            ac42cbee-a7b7-4e1e-9345-8341d1a0be8c-image.png

            TAO 1 Reply Last reply Reply Quote 1
            • TAO
              The Ancient One trusted helpers @info-creaticode last edited by

              @info-creaticode I tried, it didn’t work

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

                @the_true_odst I thought this block already existed in MIT Scratch?!?!?!

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

                TAO 1 Reply Last reply Reply Quote 0
                • TAO
                  The Ancient One trusted helpers @jeffreyrb03-gmail last edited by

                  @jeffreyrb03-gmail If it does, I can’t find it

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

                    @the_true_odst

                    The code should work. Can you provide a project link where it doesn’t work for you? And what do you mean by “doesn’t work”?

                    1 Reply Last reply Reply Quote 0
                    • MoxOnTheRox
                      MoxOnTheRox @TAO last edited by

                      @tao While this is a clunky solution, I do find it works for me flawlessly!
                      If you simply hide the sprite your cloning and create new clones with the same ID as the original clones, you can hide clones quite perfectly!
                      (In this example, I’m hiding phone buttons, thus the numbers, but I feel an image would help illustrate my point- this should work for any event and IDs) bb6cead2-e264-4d56-9f92-099cbb7f6ae3-image.png

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