SPOOK130 SPOOK130 loading
this is the code for a project were the user can move the end of the segment to create a new segment using the pen. i was going to call it Stretchy Worm, until i encountered this bug.

this is the code for the sprite that draws the body:
when green flag clicked
go to [ v]
*just a bunch of pen settings*
[scratchblocks]
forever
glide (0.1) secs to x: (newx) y: (newy)
end
[/scratchblocks]

this is the code for the first segment that i called "end":
[scratchblocks]
when green flag clicked
set x to ()
set y to ()
[/scratchblocks]
*set drag mode: draggable (couldn't find it in the block list while making this post)*
[scratchblocks]
set [ newx] to (x position)
set [newy] to (y position)
[/scratchblocks]

but when i run it the end's coordinates are x:36, y:28. and the body-drawer-thing's coordinates are x:28, y:0.
can anyone help me?