Movement speed depend on cursor distance from character

And if i want to make only 2 stages ?
only with speed 200 and 600 not
gradually because its little bit
creapy…

This should work.