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. "When This Sprite Clicked" on a clone

"When This Sprite Clicked" on a clone

Scheduled Pinned Locked Moved Help
3 Posts 3 Posters 1.2k Views 1 Watching
  • 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.
  • TheNicknameGovT Offline
    TheNicknameGovT Offline
    TheNicknameGov
    trusted helpers
    wrote on last edited by
    #1

    Can you attach a “When this Sprite clicked” to a clone of a sprite, or do you need to add this:
    252e1d53-b8a5-474b-82d7-559b30301d0e-image.png

    I'm back!!!

    Tyller_T CreatiCodeI 2 Replies Last reply
    0
    • TheNicknameGovT TheNicknameGov

      Can you attach a “When this Sprite clicked” to a clone of a sprite, or do you need to add this:
      252e1d53-b8a5-474b-82d7-559b30301d0e-image.png

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

      @011830-0a42ef84 this would be the only way, though the wait block is unnecessary because a repeat until running forever wouldn’t cause much lag

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

      1 Reply Last reply
      0
      • TheNicknameGovT TheNicknameGov

        Can you attach a “When this Sprite clicked” to a clone of a sprite, or do you need to add this:
        252e1d53-b8a5-474b-82d7-559b30301d0e-image.png

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

        @011830-0a42ef84

        The “when this sprite clicked” block works for clones, since clones are also sprites.

        Also, this is a good question that you can ask our AI assistant “CreatiCode XO”, so you do not have to wait for answers here.

        For example, you can ask XO this question: how to make a clone of a sprite say “hi” when it is clicked?

        One possible response is the following program with explanations:

        6348e856-f188-43bc-bab5-1bb10a05eb28-image.png

        Explanation:

        Create Clone: The create clone of [myself v] with ID [1] block creates a clone of the sprite with a unique ID (in this case, ‘1’). You can use any ID you’d like.

        When I Start as a Clone: This block initializes the behavior for clones. It ensures the following script applies only to clones, not the original sprite.

        When This Sprite Clicked: This block detects when any clone is clicked.

        Say Block: The say [hi] for (2) seconds block makes the sprite say “hi” for 2 seconds when clicked.

        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