Navigation

    CreatiCode Scratch Forum

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

    "When This Sprite Clicked" on a clone

    Help
    3
    3
    173
    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.
    • The_True_Odst
      The True ODST Best Forum Helpers last edited by

      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

      ODST: Orbital Drop Ship Trooper
      (Halo Reference)

      Tyller_ info-creaticode 2 Replies Last reply Reply Quote 0
      • Tyller_
        Tyller_ Best Forum Helpers @The_True_Odst last edited by

        @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 Reply Quote 0
        • info-creaticode
          CreatiCode @The_True_Odst last edited by

          @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 Reply Quote 0
          • First post
            Last post