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

Hitboxes

Scheduled Pinned Locked Moved Help
2d-blockshelp
13 Posts 4 Posters 3.8k 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.
  • GreeniWasTakenYTG Offline
    GreeniWasTakenYTG Offline
    GreeniWasTakenYT
    wrote on last edited by jeffreyrb03-gmail
    #1

    CreatiCode team, can you edit the convex hull hitboxes to be more accurate? thx!2024_10_04_0em_Kleki.png

    when life give you toasters, make toasterade… something like that

    CreatiCodeI 1 Reply Last reply
    1
    • GreeniWasTakenYTG GreeniWasTakenYT

      CreatiCode team, can you edit the convex hull hitboxes to be more accurate? thx!2024_10_04_0em_Kleki.png

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

      @s9205307-810c679a

      By definition, a “convex hull” is a “convex” shape, which means it is a single shape with no holes inside it and no indents on its edge.

      What you draw is a hole inside a shape, so it can not be supported.

      The reason for that is it is much faster to test if 2 shapes are colliding (overlapping) if both of them are convex. If we allow holes inside them, then the computation will be much more complex and time-consuming.

      Can you explain what you are trying to do a bit more? Maybe you can consider using 2 or 4 convex shapes instead?

      silvloveS GreeniWasTakenYTG 2 Replies Last reply
      1
      • CreatiCodeI CreatiCode

        @s9205307-810c679a

        By definition, a “convex hull” is a “convex” shape, which means it is a single shape with no holes inside it and no indents on its edge.

        What you draw is a hole inside a shape, so it can not be supported.

        The reason for that is it is much faster to test if 2 shapes are colliding (overlapping) if both of them are convex. If we allow holes inside them, then the computation will be much more complex and time-consuming.

        Can you explain what you are trying to do a bit more? Maybe you can consider using 2 or 4 convex shapes instead?

        silvloveS Offline
        silvloveS Offline
        silvlove
        Mod Helper
        wrote on last edited by
        #3

        @info-creaticode
        Yes.
        @s9205307-810c679a
        You can make 2 hitboxes, one for collision, and one for colliding with objects that kill you.

        Forums Moderator.
        Trans girl :3 ~ 14yo
        Friendly and sometimes goofy~!

        JaecadeJnightJ 1 Reply Last reply
        0
        • silvloveS silvlove

          @info-creaticode
          Yes.
          @s9205307-810c679a
          You can make 2 hitboxes, one for collision, and one for colliding with objects that kill you.

          JaecadeJnightJ Offline
          JaecadeJnightJ Offline
          JaecadeJnight
          Mod Helper
          wrote on last edited by
          #4

          @catty is this even a weapon? why would it kill you? or is that just like in general

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

          silvloveS 1 Reply Last reply
          0
          • JaecadeJnightJ JaecadeJnight

            @catty is this even a weapon? why would it kill you? or is that just like in general

            silvloveS Offline
            silvloveS Offline
            silvlove
            Mod Helper
            wrote on last edited by
            #5

            @jeffreyrb03-gmail Like Geometry Dash Spikes.

            Forums Moderator.
            Trans girl :3 ~ 14yo
            Friendly and sometimes goofy~!

            JaecadeJnightJ 1 Reply Last reply
            0
            • silvloveS silvlove

              @jeffreyrb03-gmail Like Geometry Dash Spikes.

              JaecadeJnightJ Offline
              JaecadeJnightJ Offline
              JaecadeJnight
              Mod Helper
              wrote on last edited by
              #6

              @catty makes sense

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

              1 Reply Last reply
              0
              • CreatiCodeI CreatiCode

                @s9205307-810c679a

                By definition, a “convex hull” is a “convex” shape, which means it is a single shape with no holes inside it and no indents on its edge.

                What you draw is a hole inside a shape, so it can not be supported.

                The reason for that is it is much faster to test if 2 shapes are colliding (overlapping) if both of them are convex. If we allow holes inside them, then the computation will be much more complex and time-consuming.

                Can you explain what you are trying to do a bit more? Maybe you can consider using 2 or 4 convex shapes instead?

                GreeniWasTakenYTG Offline
                GreeniWasTakenYTG Offline
                GreeniWasTakenYT
                wrote on last edited by GreeniWasTakenYT
                #7

                @info-creaticode Good suggestion! Can you teach me how to dot that please? thx

                when life give you toasters, make toasterade… something like that

                CreatiCodeI 1 Reply Last reply
                0
                • GreeniWasTakenYTG GreeniWasTakenYT

                  @info-creaticode Good suggestion! Can you teach me how to dot that please? thx

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

                  @s9205307-810c679a

                  Can you explain what you are trying to use this for?

                  GreeniWasTakenYTG 1 Reply Last reply
                  0
                  • CreatiCodeI CreatiCode

                    @s9205307-810c679a

                    Can you explain what you are trying to use this for?

                    GreeniWasTakenYTG Offline
                    GreeniWasTakenYTG Offline
                    GreeniWasTakenYT
                    wrote on last edited by
                    #9

                    @info-creaticode I’m trying to use this to remake the game “Bad Piggies.” In the game, you can put the pig in a box with a hole! . I am trying to replicate that. Look at the image.2024_10_04_0x2_Kleki.png

                    when life give you toasters, make toasterade… something like that

                    CreatiCodeI JaecadeJnightJ 2 Replies Last reply
                    1
                    • GreeniWasTakenYTG GreeniWasTakenYT

                      @info-creaticode I’m trying to use this to remake the game “Bad Piggies.” In the game, you can put the pig in a box with a hole! . I am trying to replicate that. Look at the image.2024_10_04_0x2_Kleki.png

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

                      @s9205307-810c679a

                      That’s an interesting game. It seems a box would be fine for the hitbox. Why do you need it to be a red frame like you have drawn here?

                      1 Reply Last reply
                      1
                      • GreeniWasTakenYTG GreeniWasTakenYT

                        @info-creaticode I’m trying to use this to remake the game “Bad Piggies.” In the game, you can put the pig in a box with a hole! . I am trying to replicate that. Look at the image.2024_10_04_0x2_Kleki.png

                        JaecadeJnightJ Offline
                        JaecadeJnightJ Offline
                        JaecadeJnight
                        Mod Helper
                        wrote on last edited by
                        #11

                        @s9205307-810c679a if you really wanna have a box in a box hitbox then why not use 4 box hitboxes: 7bab6bec-d784-478a-ab54-62fa0ca25cc9-image.jpeg

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

                        CreatiCodeI 1 Reply Last reply
                        0
                        • JaecadeJnightJ JaecadeJnight

                          @s9205307-810c679a if you really wanna have a box in a box hitbox then why not use 4 box hitboxes: 7bab6bec-d784-478a-ab54-62fa0ca25cc9-image.jpeg

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

                          @jeffreyrb03-gmail

                          That’s also a good option, if the hit box must have an empty square hole inside it.

                          Here is an example of how to do it using “compound shape”. You just need to draw the costume using 4 boxes:

                          https://play.creaticode.com/projects/670083d55689190abfe5461f

                          JaecadeJnightJ 1 Reply Last reply
                          2
                          • CreatiCodeI CreatiCode

                            @jeffreyrb03-gmail

                            That’s also a good option, if the hit box must have an empty square hole inside it.

                            Here is an example of how to do it using “compound shape”. You just need to draw the costume using 4 boxes:

                            https://play.creaticode.com/projects/670083d55689190abfe5461f

                            JaecadeJnightJ Offline
                            JaecadeJnightJ Offline
                            JaecadeJnight
                            Mod Helper
                            wrote on last edited by jeffreyrb03-gmail
                            #13

                            @info-creaticode Ahhh yes, thats pretty good

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

                            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