Mouse and Space See more at https://scratch.mit.edu/studios/51685755 ! --- << HOW IT WORKS >> ------------------------------------- First, we move Red's position relative to the mouse. # Change vX by ( ( ( Mouse x - X pos ) ) * 0.8 ) # Change vY by ( ( ( Mouse y - Y pos ) ) * 0.8 ) But there's a problem... It doesn't bounce back when it overshoots. So, we add a constraint! We need to slow down Red gradually so he bounces back to the mouse. # Set vX to ( ( vX * 0.8 ) ) # Set vY to ( ( vY * 0.8 ) ) Red still goes too fast, so we add a speed limit constraint! # If ( vX or vY > 12 or -12 ) then # Set vX or vY to ( vX or vY * 0.8 ) Now Red should be moving smoothly! ------------------------------------------------------------------------- Song is Hyperzone 2 - Jun Ishikawa #chase #experiment #spring #dampening #fly #red