Code makes line diagonally instead of drawing it horizontally

Project link:

1-sentence description of the issue:
Code makes line diagonally instead of drawing it horizontally.
What do you want your code to do?
Make a straight line
What is the code currently doing?
Makes a diagonal line
Screenshots:


6 Likes

Works as intended.

If you wanted it to go straight down from where it started, use self X position.

Otherwise, declare its start position before you draw the trail.

5 Likes

uh i’m confused, with this code it’ll certainly draw diagonally

yep!

4 Likes

I found it, I put it’s set position in the draw a trail block.
although I am confused how that makes a turned line by set position in a block

5 Likes

just imagine you’re holding a pen and you move your hand to another place. because you’re currently holding it while moving, you have drawn a line - that’s why set position can draw lines too :))

6 Likes

@FearlessPhoenix clive, it seems this has been solved.

3 Likes

@Bobinny, i’ll go ahead and clive this if you confirm that you’ve understood the explanations. didnt see it marked as solved yet so wanted to make sure you were good with this before closing

2 Likes

It’s marked as solved now. Clive?

1 Like

Let us know if you’d like it re-opened.