Launching a ball using a drag system -- help
-
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
-
@011830-0a42ef84 it seems to be crashing for me, is that just a me issue or is it for you too now
-
@tyller_ Yes, I tried going in to edit it and it did the same thing.
-
@011830-0a42ef84 to guess some possible errors btw here are some
- 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 -
We will check why the project is not loading and fix it. Sorry about that.
-
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.