Navigation

    CreatiCode Scratch Forum

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

    Hitbox Help

    Help
    4
    7
    337
    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.
    • GreeniWasTakenYT
      GreeniWasTakenYT last edited by

      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

      info-creaticode 1 Reply Last reply Reply Quote 1
      • Tyller_
        Tyller_ Best Forum Helpers last edited by

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

        GreeniWasTakenYT 1 Reply Last reply Reply Quote 1
        • info-creaticode
          CreatiCode @GreeniWasTakenYT last edited by

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

          GreeniWasTakenYT 1 Reply Last reply Reply Quote 1
          • GreeniWasTakenYT
            GreeniWasTakenYT @Tyller_ last edited by

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

              @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

              info-creaticode jeffreyrb03-gmail 2 Replies Last reply Reply Quote 0
              • info-creaticode
                CreatiCode @GreeniWasTakenYT last edited by

                @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 Reply Quote 0
                • jeffreyrb03-gmail
                  JaecadeJnight Mod Helper @GreeniWasTakenYT last edited by jeffreyrb03-gmail

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