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. Hitbox Help

Hitbox Help

Scheduled Pinned Locked Moved Help
7 Posts 4 Posters 1.5k 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
    #1

    I’m trying to make Tetris but with physics, the hitboxes aren’t working right. Can someone help, please? Screenshot 2024-11-14 8.45.24 AM.png

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

    CreatiCodeI 1 Reply Last reply
    1
    • Tyller_T Offline
      Tyller_T Offline
      Tyller_
      trusted helpers
      wrote on last edited by
      #2

      @s9205307-810c679a You want a compound body (I think thats what it’s called) not a convex hull

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

      GreeniWasTakenYTG 1 Reply Last reply
      1
      • GreeniWasTakenYTG GreeniWasTakenYT

        I’m trying to make Tetris but with physics, the hitboxes aren’t working right. Can someone help, please? Screenshot 2024-11-14 8.45.24 AM.png

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

        @s9205307-810c679a

        For a game like Tetris, you don’t really need very complex physics, right? The key is collision detection, which can be done using the original “touching” blocks. So it might be overkill to use the physics engine for it.

        GreeniWasTakenYTG 1 Reply Last reply
        1
        • Tyller_T Tyller_

          @s9205307-810c679a You want a compound body (I think thats what it’s called) not a convex hull

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

          @tyller_ i did that but it stayed frozen in the air

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

          1 Reply Last reply
          0
          • CreatiCodeI CreatiCode

            @s9205307-810c679a

            For a game like Tetris, you don’t really need very complex physics, right? The key is collision detection, which can be done using the original “touching” blocks. So it might be overkill to use the physics engine for it.

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

            @info-creaticode I know that but I wanted to remake the game but with physics

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

            CreatiCodeI JaecadeJnightJ 2 Replies Last reply
            0
            • GreeniWasTakenYTG GreeniWasTakenYT

              @info-creaticode I know that but I wanted to remake the game but with physics

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

              @s9205307-810c679a

              In that case, please share your project and post the link. Also, you can try to use the “debug” option to show the physics body attached to your compound

              1 Reply Last reply
              0
              • GreeniWasTakenYTG GreeniWasTakenYT

                @info-creaticode I know that but I wanted to remake the game but with physics

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

                @s9205307-810c679a tetris with physics doesn’t sound like a good idea unless it’s an experiment or something. Like what if there’s some small disturbance now you have angled tetrominoes/pieces. Also that would make the game’s current gameplay much harder such as techniques where you try to put something in a tight place by flipping it very quickly before it hits the ground or other blocks would now become obsolete/not work at all.

                #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