# Measure distance help

**URL:** <https://forum.kirupa.com/t/measure-distance-help/243253>\
**Category:** Uncategorized\
**Created:** [November 5, 2007, 3:14am UTC](https://forum.kirupa.com/t/measure-distance-help/243253 "2007-11-05T03:14:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vin23leo](https://avatars.discourse-cdn.com/v4/letter/v/b77776/32.png) [@vin23leo](https://forum.kirupa.com/u/vin23leo)\
**Post date:** [November 5, 2007, 3:14am UTC](https://forum.kirupa.com/t/measure-distance-help/243253/1 "2007-11-05T03:14:58Z")

</div>

hey guys, i need help, im making a game where as you need to reach a house, the fastest time is the winner., i wanna be able to have a movieclip on the bottom, to show how much distance is left to reach home, in the code i have

if (house.\_yscale \> 300) {  
//trace(“I got home”);  
this.\_parent.gotoAndStop(86);

}

}

now i based movement on x,y scale so when the house scale is greater then 300, it will gotoandstop at 86 which is the game finish screen

can any help me assp???

i really appreicate it

cheers
