Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • CreatiCode
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

CreatiCode Scratch Forum

  1. CreatiCode Forum
  2. Help
  3. Reference a Clone

Reference a Clone

Scheduled Pinned Locked Moved Help
6 Posts 2 Posters 2.0k Views
  • 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.
  • Tyller_T Offline
    Tyller_T Offline
    Tyller_
    trusted helpers
    wrote on last edited by
    #1

    How do I reference a clone sprite? I’m trying to use 2D physics to make a rope, I have a loop spawning each clone with a clone ID that is one higher then the last and a local sprite variable isClone to tell if they are a clone or not, when I manually press create a clone and check a physics block sprite input it shows multiple of the Rope sprite’s name with all checked off when I check any of them, I can provide a screenshot or project link if this is too confusing.

    I just need to reference the entire sprite of a clone, not just a property of it like possible in the sensing block property of sprite. (PS: Sorry that this is very long, I gave some context alongside the question so people wouldn’t need to ask me so many questions)

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

    CreatiCodeI 1 Reply Last reply
    0
    • Tyller_T Tyller_

      How do I reference a clone sprite? I’m trying to use 2D physics to make a rope, I have a loop spawning each clone with a clone ID that is one higher then the last and a local sprite variable isClone to tell if they are a clone or not, when I manually press create a clone and check a physics block sprite input it shows multiple of the Rope sprite’s name with all checked off when I check any of them, I can provide a screenshot or project link if this is too confusing.

      I just need to reference the entire sprite of a clone, not just a property of it like possible in the sensing block property of sprite. (PS: Sorry that this is very long, I gave some context alongside the question so people wouldn’t need to ask me so many questions)

      CreatiCodeI Offline
      CreatiCodeI Offline
      CreatiCode
      wrote on last edited by
      #2

      @jaysen4games-gmail

      Hi, it would be great if you could provide a project link. We will help you find a solution. And thanks for the detailed description. That helps a lot.

      CreatiCode

      Tyller_T 1 Reply Last reply
      0
      • CreatiCodeI CreatiCode

        @jaysen4games-gmail

        Hi, it would be great if you could provide a project link. We will help you find a solution. And thanks for the detailed description. That helps a lot.

        CreatiCode

        Tyller_T Offline
        Tyller_T Offline
        Tyller_
        trusted helpers
        wrote on last edited by
        #3

        @info-creaticode https://play.creaticode.com/projects/c1b14a54d877d843799b4655

        in the rope sprite I tried to use clone id-1 but it didn’t work and ended up having them attached to nothing

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

        CreatiCodeI 1 Reply Last reply
        0
        • Tyller_T Tyller_

          @info-creaticode https://play.creaticode.com/projects/c1b14a54d877d843799b4655

          in the rope sprite I tried to use clone id-1 but it didn’t work and ended up having them attached to nothing

          CreatiCodeI Offline
          CreatiCodeI Offline
          CreatiCode
          wrote on last edited by info-creaticode
          #4

          @jaysen4games-gmail

          Thanks for the project link. That’s an interesting project.

          You are right that there is no simple way to refer to the clones when setting the rotation axis. We have just made an update to support it using the format of “sprite name|clone id”.

          As shown below, the first clone would link to the sprite named “Rope|originalsprite”, since the original rope sprite’s clone ID is “originalsprite”. The second clone would link to the sprite named “Rope|1”, which is the first clone. The same for the remaining clones.

          3c6d44f4-b01b-41d1-857c-3d5de884bca5-image.png

          The demo project is shared at https://play.creaticode.com/projects/650b8f77fe0a145f53bbdaf8

          Tyller_T 1 Reply Last reply
          0
          • CreatiCodeI CreatiCode

            @jaysen4games-gmail

            Thanks for the project link. That’s an interesting project.

            You are right that there is no simple way to refer to the clones when setting the rotation axis. We have just made an update to support it using the format of “sprite name|clone id”.

            As shown below, the first clone would link to the sprite named “Rope|originalsprite”, since the original rope sprite’s clone ID is “originalsprite”. The second clone would link to the sprite named “Rope|1”, which is the first clone. The same for the remaining clones.

            3c6d44f4-b01b-41d1-857c-3d5de884bca5-image.png

            The demo project is shared at https://play.creaticode.com/projects/650b8f77fe0a145f53bbdaf8

            Tyller_T Offline
            Tyller_T Offline
            Tyller_
            trusted helpers
            wrote on last edited by Tyller_
            #5

            @info-creaticode thank you, I’ll update the project with this format

            PS: I had to refresh the page to post this and it was giving me a popup denying me posting saying “Forbidden”, I think it’s cause I left this tab open for technically over night but something to note

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

            CreatiCodeI 1 Reply Last reply
            0
            • Tyller_T Tyller_

              @info-creaticode thank you, I’ll update the project with this format

              PS: I had to refresh the page to post this and it was giving me a popup denying me posting saying “Forbidden”, I think it’s cause I left this tab open for technically over night but something to note

              CreatiCodeI Offline
              CreatiCodeI Offline
              CreatiCode
              wrote on last edited by
              #6

              @jaysen4games-gmail

              Yes, that’s most likely due to a timeout from a long idle period.

              1 Reply Last reply
              0

              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
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • CreatiCode