# Scale problem

**URL:** <https://forum.kirupa.com/t/scale-problem/152051>\
**Category:** Uncategorized\
**Created:** [June 20, 2005, 9:32pm UTC](https://forum.kirupa.com/t/scale-problem/152051 "2005-06-20T21:32:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![colombianking](https://avatars.discourse-cdn.com/v4/letter/c/9fc348/32.png) [@colombianking](https://forum.kirupa.com/u/colombianking)\
**Post date:** [June 20, 2005, 9:32pm UTC](https://forum.kirupa.com/t/scale-problem/152051/1 "2005-06-20T21:32:33Z")

</div>

how do you make it that when you press a key , the mc you have grows until a certain scale

onClipEvent(enterFrame) {  
if (Key.isDown(38) & speed \>= 20 ){  
this.\_xscale += 20;  
this.\_yscale += 20;  
}  
}  
this is what i have what do i put so that it stops when it reaches a certain scale:toad:
