Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Solved: X Y Grid Math
- jdmdigital
-
100+ posts
Solved: X Y Grid Math
Hello.
Project: https://scratch.mit.edu/projects/523948406/editor/
Update Final: Why be complicated…I can use the simple point in direction.
===========================
Update1: I got the glide line straightened…now to compensate for the offset tossing the ball to the left all the time.
=====Original==========
I need a refresher in grid math.
Issue: Ball's first glide was opposite of targetX from startX but I factored in an offset and now it starts straight but zigs at a later glide. My math is still not correct.
Below is how it was before I added the offset. The offest just pushed same effect down the chain.

Project: https://scratch.mit.edu/projects/523948406/editor/
Update Final: Why be complicated…I can use the simple point in direction.
===========================
Update1: I got the glide line straightened…now to compensate for the offset tossing the ball to the left all the time.
=====Original==========
I need a refresher in grid math.
Issue: Ball's first glide was opposite of targetX from startX but I factored in an offset and now it starts straight but zigs at a later glide. My math is still not correct.
Below is how it was before I added the offset. The offest just pushed same effect down the chain.
Last edited by jdmdigital (April 30, 2021 22:31:47)
- jdmdigital
-
100+ posts
Solved: X Y Grid Math
Also, I just noticed target x is not working from umpX as it did on desktop. It must have bugged out when I uploaded it to here.
- Discussion Forums
- » Help with Scripts
-
» Solved: X Y Grid Math