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. Launching a ball using a drag system -- help

Launching a ball using a drag system -- help

Scheduled Pinned Locked Moved Help
drag launching
6 Posts 3 Posters 1.7k 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.
  • TheNicknameGovT Offline
    TheNicknameGovT Offline
    TheNicknameGov
    trusted helpers
    wrote on last edited by
    #1

    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

    I'm back!!!

    Tyller_T CreatiCodeI 3 Replies Last reply
    1
    • TheNicknameGovT TheNicknameGov

      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

      Tyller_T Offline
      Tyller_T Offline
      Tyller_
      trusted helpers
      wrote on last edited by
      #2

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

      TheNicknameGovT 1 Reply Last reply
      1
      • Tyller_T Tyller_

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

        TheNicknameGovT Offline
        TheNicknameGovT Offline
        TheNicknameGov
        trusted helpers
        wrote on last edited by
        #3

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

        I'm back!!!

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

          @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
          1
          • TheNicknameGovT TheNicknameGov

            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

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

            @011830-0a42ef84

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

            1 Reply Last reply
            1
            • TheNicknameGovT TheNicknameGov

              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

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

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