# Scale position of objects, keep size unchanged

**URL:** <https://forum.kirupa.com/t/scale-position-of-objects-keep-size-unchanged/284734>\
**Category:** Uncategorized\
**Created:** [March 23, 2009, 5:31am UTC](https://forum.kirupa.com/t/scale-position-of-objects-keep-size-unchanged/284734 "2009-03-23T05:31:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rockinfewl](https://avatars.discourse-cdn.com/v4/letter/r/ecae2f/32.png) [@Rockinfewl](https://forum.kirupa.com/u/Rockinfewl)\
**Post date:** [March 23, 2009, 5:31am UTC](https://forum.kirupa.com/t/scale-position-of-objects-keep-size-unchanged/284734/1 "2009-03-23T05:31:57Z")

</div>

Hi all,

I’ve been struggling with this problem for a long time, and after looking into the various AS forums on the 'net, Kirupa seems like _the_ place to ask the experts!

I have a Sprite object with a nearly a 1000 child Shape object.  
The Sprite is a layer over a GoogleMap and the Shapes are icons for map locations. The Sprite is scaled when the map scales, so the Shapes currently scale with it.

What I’d like to see is that the **position** of a Shape changes according the scaling, yet the **size** of the Shape stays the seem. _Nobody desires dinosaur or microscopic icons when scaling the map in or out._

Currently I attempt to implement this by scaling the Shapes inversely as the Sprite scales. Doing this for a 1000 objects individually seems clumsy. Also this approach requires that I **know** the scaling factor of the Sprite. In the end I’d like not to rely on this as scaling the Sprite will be done by the GoogleMaps component.

Any ideas for an alternative or improved way?

Thanks heaps!
