letmethinkforaminute

Why is my joystick bugging
https://scratch.mit.edu/projects/584999331/editor/

letmethinkforaminute

Bump

Thingied

Some problems I found
1. The get direction custom block doesn't really work. Some things are wrong like the x and y sections being swapped, the +180 part being nested in the atan function and having it be x instead of y.
A little off topic but you can do Y < Y2 instead of subtracting.
Fixed version:

2. The collision script is a little glitchy, so here's how to fix it. Right now it's programmed to teleport to is inside the circle, which can be kind of hard to fix when it's based off the radius of a sprite. My fix is to just make a set radius and base it off of that.


3. The move script doesn't change the y for the object so just fix that and you're game is fixed :D.

letmethinkforaminute

Thingied wrote:

Some problems I found
1. The get direction custom block doesn't really work. Some things are wrong like the x and y sections being swapped, the +180 part being nested in the atan function and having it be x instead of y.
A little off topic but you can do Y < Y2 instead of subtracting.
Fixed version:

2. The collision script is a little glitchy, so here's how to fix it. Right now it's programmed to teleport to is inside the circle, which can be kind of hard to fix when it's based off the radius of a sprite. My fix is to just make a set radius and base it off of that.


3. The move script doesn't change the y for the object so just fix that and you're game is fixed :D.
Thanks but I can’t find my code for the collision part also does that fix the problem where if you have your finger somewhere it pings the joystick up or to the right

letmethinkforaminute

letmethinkforaminute wrote:

Thingied wrote:

Some problems I found
1. The get direction custom block doesn't really work. Some things are wrong like the x and y sections being swapped, the +180 part being nested in the atan function and having it be x instead of y.
A little off topic but you can do Y < Y2 instead of subtracting.
Fixed version:

2. The collision script is a little glitchy, so here's how to fix it. Right now it's programmed to teleport to is inside the circle, which can be kind of hard to fix when it's based off the radius of a sprite. My fix is to just make a set radius and base it off of that.


3. The move script doesn't change the y for the object so just fix that and you're game is fixed :D.
Thanks but I can’t find my code for the collision part also does that fix the problem where if you have your finger somewhere it pings the joystick up or to the right
Could you remix my thing with the changes you made

Thingied

letmethinkforaminute wrote:

Could you remix my thing with the changes you made
https://scratch.mit.edu/projects/585194335/

letmethinkforaminute

Thingied wrote:

letmethinkforaminute wrote:

Could you remix my thing with the changes you made
https://scratch.mit.edu/projects/585194335/
Thanks I copied yours but for some reason my radius is stuck at 0 not 41

D-ScratchNinja

Do you want to use mine that I just made (here)?

letmethinkforaminute

Thingied wrote:

letmethinkforaminute wrote:

Could you remix my thing with the changes you made
https://scratch.mit.edu/projects/585194335/
Can you point out where the code that changes radius is

Thingied

letmethinkforaminute wrote:

Thingied wrote:

letmethinkforaminute wrote:

Could you remix my thing with the changes you made
https://scratch.mit.edu/projects/585194335/
Can you point out where the code that changes radius is
(kind of a late response so hopefully this isn't a necropost)
If you scroll down to the bottom left you'll find a set radius block. Change the number in it to change the radius.

letmethinkforaminute

Thingied wrote:

letmethinkforaminute wrote:

Thingied wrote:

letmethinkforaminute wrote:

Could you remix my thing with the changes you made
https://scratch.mit.edu/projects/585194335/
Can you point out where the code that changes radius is
(kind of a late response so hopefully this isn't a necropost)
If you scroll down to the bottom left you'll find a set radius block. Change the number in it to change the radius.
That is a necropost but no worries as I’ve finished it and you didn’t know so you shouldn’t get in trouble