Navigation

    CreatiCode Scratch Forum

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

    Launching a ball using a drag system -- help

    Help
    drag launching
    3
    6
    333
    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

      I used AI for most of this, which helped much. Everything looks right, it just doesn’t work for some reason. could I get help with this?
      https://play.creaticode.com/projects/672bd910731b37123596f24a

      ODST: Orbital Drop Ship Trooper
      (Halo Reference)

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

        @011830-0a42ef84 it seems to be crashing for me, is that just a me issue or is it for you too now

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

        The_True_Odst 1 Reply Last reply Reply Quote 1
        • The_True_Odst
          The True ODST Best Forum Helpers @Tyller_ last edited by

          @tyller_ Yes, I tried going in to edit it and it did the same thing.

          ODST: Orbital Drop Ship Trooper
          (Halo Reference)

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

            @011830-0a42ef84 to guess some possible errors btw here are some

            1. If you are using when dragged, then the issue is that ragging I think is a bit special, I remember making a detectable drag that just detects when the sprite is clicked, sets the offset to the mouse, then forever goes to the mouse position plus the offset (demo below for movable mouse)

            When this sprite clicked
            Set XOffset to (X position - Mouse X)
            Set YOffset to (Y position - Mouse Y)
            Repeat until < not < mouse down > >
            | Go to X: (XOffset + Mouse X) Y: (YOffset + Mouse Y)

            (offset is so when you try to start dragging a sprite it doesn’t snap it’s center to where your mouse is)
            If that makes sense, I remember the actual drag doing some weird stuff where you can’t check if it’s touching stuff while your dragging it, you may need to do the method I listed, as well as maybe making it not be pushable by forces while being dragged

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

              @011830-0a42ef84

              We will check why the project is not loading and fix it. Sorry about that.

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

                @011830-0a42ef84

                Your project is loading fine now.

                There is one issue that you need to fix. Since you are working with the 2D physice engine, you need to use blocks from the “2D physics” category. Currently it is using the “apply force” block for 3D physics. You can tell the color is different for 3D related blocks.

                9b0e661d-799e-4689-b71a-90326b8cba4d-image.png

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