# Scaling in relationship to X position

**URL:** <https://forum.kirupa.com/t/scaling-in-relationship-to-x-position/140268>\
**Category:** Uncategorized\
**Created:** [March 9, 2005, 6:32pm UTC](https://forum.kirupa.com/t/scaling-in-relationship-to-x-position/140268 "2005-03-09T18:32:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sevenxsix](https://avatars.discourse-cdn.com/v4/letter/s/4bbf92/32.png) [@sevenxsix](https://forum.kirupa.com/u/sevenxsix)\
**Post date:** [March 9, 2005, 6:32pm UTC](https://forum.kirupa.com/t/scaling-in-relationship-to-x-position/140268/1 "2005-03-09T18:32:16Z")

</div>

Hey all,

I’ve tried to do this a few times, and there’s got to be a better way.

Essentially I want a MC to take it’s X position and magically set its x and yscale, so that when it is at an X of 0, it’s xscale is 75, when it’s at a X of 88, it’s xscale is 100, and when it’s at a X of 176, its scale is 75 again.

But it needs to scale from 75 to 100 and back to 75 smoothly, while it’s being moved by another script.

Any ideas?? Greatly appreciated.
