Is there a way to interrupt a sprite before it finishes gliding?

I want a sprite to glide from point a to b, but stop if it touches something. I know I can use a repeat block with the move block, but I want it to stop exactly when it touches something. Moving by 10 steps at a time could cause it to overshoot before stopping, and moving by only 1 step at a time is just too slow.

I used pen trails in my experiment, but you can replace that with a sprite or whatever.

Thank you

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.