Adjustable relative position

by spielscratch
See Code Download Embed
The idea here is to have a second sprite to travel with a main sprite and act as a sensor probe that can be moved relative to the main sprite.

This code moves the 'car' sprite' square colourful thing (main sprite), the little green dot (Sensor) moves with the car.

User presses the space bar to move the Sensor further away from the car.

Problem: green dot sometimes moves closer to the car it should, e.g. when the car moves from -100,-100 to 100,100, the car seems to catch it up unless the space key is pressed.

Created December 21, 2022

Last updated December 27, 2022

Shared December 21, 2022