on this page: https://www.scirra.com/manual/126/system-expressions
"distance(x1, y1, x2, y2) Calculate distance between to points"
I believe that is "two" and not" to"
Tom
Develop games in your browser. Powerful, performant & highly capable.