I'm trying to make a worm which acts acurately with gravity.
Because I mod scratch, I've got four extra blocks which are very useful and pretty self explanitry that I can use:
(speed if x vel( ) y vel( )) (bearing if x vel( ) y vel( )) (x vel if speed( ) bearing( )) (y vel if speed( ) bearing( ))I've worked out their length beforehand and I'll put that as length.
when gf clicked forever point towards [first circle v] move ((distance to [first circle v]) - ((length) / (2))) stepsthe first circle has
when gf clicked forever change x by (x vel if speed((length of first rectangle) / 2) bearing (([direction v] of [first rectangle v]) + (180)) change y by (x vel if speed((length of first rectangle) / 2) bearing (([direction v] of [first rectangle v]) + (180)).
Offline
It seems scratch won't accept ridiculously long stings of blocks all nested within each other. The mising script basically worked out the difference between the x and y of the end of the rectangle and the centre of the ball. The ball and rectangle are then copied and each new one moves towards the one before it.
Offline