Navigation

    CreatiCode Scratch Forum

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

    hitbox and hurtboxs

    Feedback
    2
    7
    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.
    • D
      dezz nuts last edited by

      I want a way to edit how other sprites interact. I’m trying to make a circle sprite, but I run into the issue of trying to make other sprites only count touching if they touch the ring. I don’t want them to touch a blank spot.

      Also, day 2 requesting a document with a way to see all the features that were added from users and progress.

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

        @dezz-nuts

        Are you saying you do not want to count as touching a sprite if that sprite is a ring and your sprite is inside that ring?

        D 1 Reply Last reply Reply Quote 0
        • D
          dezz nuts @info-creaticode last edited by

          @info-creaticode im saying i want to be able define were the sensing block can interact also i want be able want the senseing block to only count were it touch a non transparent part of sprite only one opaque part

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

            @dezz-nuts

            Can you create a simple example project? With just 2 sprites, and illustrates where the issue is: like the sensing block (which block you are using?) is reporting it is touching the other sprite though you do not want it to do so.

            D 1 Reply Last reply Reply Quote 0
            • D
              dezz nuts @info-creaticode last edited by dezz nuts

              @info-creaticode press the flag https://play.creaticode.com/projects/696fc7e4f11495ad2e200591


              password 123

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

                @dezz-nuts

                If you set the ring to have transparent filling, then it will say touching is false, right?

                94a2cd7d-c0ee-48e8-92e2-d64494f17a60-image.png

                If you must have the white color filling the ring, then you can work around it a few ways:

                1. Use touching color with the ring color instead of touchign sprite
                2. Besides checking for touching, also calculate distance between the dog and the ring, and if the distance is very small, it means the dog is inside the ring.
                3. Use 2 ring sprites, one transparent and one filled, and they go together, and for touching test, use the ring that’s transparent.
                D 1 Reply Last reply Reply Quote 0
                • D
                  dezz nuts @info-creaticode last edited by

                  @info-creaticode thank you @dezznuts

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