# Local to local

**URL:** <https://forum.kirupa.com/t/local-to-local/282348>\
**Category:** Uncategorized\
**Created:** [February 20, 2009, 2:12pm UTC](https://forum.kirupa.com/t/local-to-local/282348 "2009-02-20T14:12:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SticksStones](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@SticksStones](https://forum.kirupa.com/u/SticksStones)\
**Post date:** [February 20, 2009, 2:12pm UTC](https://forum.kirupa.com/t/local-to-local/282348/1 "2009-02-20T14:12:46Z")

</div>

Hi,

I have several nested layers, affected by scale and rotation. Most of the action happens on my main game layer, 2 layers deep from the root. In that layer i have a spaceship, in that layer, a rotating turret, within that the gun image, it’s registration point is used as the bullets spawn location.

I need to convert to bullet spawn point’s on screen location to it’s relative position on the game layer, in a similar fashion to using local to global, but really I need a local to local function, which I’m 99% sure doesn’t exist. Any ideas?

Thanks  
Andy
