Discuss Scratch
- Discussion Forums
- » Suggestions
- » X and Y distance
- polishdziabag55603
-
Scratcher
95 posts
X and Y distance
Since the distance to Apple v block will always take the diagonal like on the image, but sometimes we need to get 2 separate values like on the photo.


- medians
-
Scratcher
1000+ posts
X and Y distance
You could also do this:

For y distance, use y position instead.

For y distance, use y position instead.
- polishdziabag55603
-
Scratcher
95 posts
X and Y distance
You could also do this:Is it only for Scratch 2 or I can use that in Scratch 3?
For y distance, use y position instead.
- medians
-
Scratcher
1000+ posts
X and Y distance
It should work in Scratch 3.0, you can also use the x position reporter in one of those.You could also do this:Is it only for Scratch 2 or I can use that in Scratch 3?
For y distance, use y position instead.
- polishdziabag55603
-
Scratcher
95 posts
X and Y distance
I tried this, but didn't work. Could you help me in this project so multiplayer works correctly?It should work in Scratch 3.0, you can also use the x position reporter in one of those.You could also do this:Is it only for Scratch 2 or I can use that in Scratch 3?
For y distance, use y position instead.
https://scratch.mit.edu/projects/874398005/
- medians
-
Scratcher
1000+ posts
X and Y distance
Wait, where did you try using it, and maybe x position would work?I tried this, but didn't work. Could you help me in this project so multiplayer works correctly?It should work in Scratch 3.0, you can also use the x position reporter in one of those.You could also do this:Is it only for Scratch 2 or I can use that in Scratch 3?
For y distance, use y position instead.
https://scratch.mit.edu/projects/874398005/
- polishdziabag55603
-
Scratcher
95 posts
X and Y distance
Will not. The road is scrolling and the car is always at x 0 y 0, and what I expect is this:Wait, where did you try using it, and maybe x position would work?I tried this, but didn't work. Could you help me in this project so multiplayer works correctly?It should work in Scratch 3.0, you can also use the x position reporter in one of those.You could also do this:Is it only for Scratch 2 or I can use that in Scratch 3?
For y distance, use y position instead.
https://scratch.mit.edu/projects/874398005/
When I stay on the road, and someone goes, instead of the road scrolling, I would like it to move like in real life.
- Discussion Forums
- » Suggestions
-
» X and Y distance

