I have it so, but it dont works really well.
self.X and self.Y dont work say the System. So I changed it to:
(distance(player.x, player.y - Away, Platform.X, Platform.Y))
Away = Variable
Platform.X and Y were before self.X and Y but i dont know why I cant add "self".
Darklinki