# Pan camera based on parent location

**URL:** <https://forums.unrealengine.com/t/pan-camera-based-on-parent-location/481061>\
**Category:** Cinematics & Media\
**Tags:** screen-position, unreal-engine, question\
**Created:** [March 29, 2021, 4:15pm UTC](https://forums.unrealengine.com/t/pan-camera-based-on-parent-location/481061 "2021-03-29T16:15:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Telapicus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Telapicus](https://forums.unrealengine.com/u/Telapicus)\
**Post date:** [March 29, 2021, 4:15pm UTC](https://forums.unrealengine.com/t/pan-camera-based-on-parent-location/481061/1 "2021-03-29T16:15:47Z")

</div>

Hello

I want to pan around a player object (in this case a spaceship from top down) not infinitely just until the player is at the screen edge like such

 ![334058-1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/d/6/9d63025545ac3d904722d97138ca8cc3cd0a3318.png)

 ![334059-2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/2/8/628958961eb327ee529e660b525fd05d1b768b30.png)

I’ve looked around but i can’t find something close to it any help would be appreciated

---

<div class="post-metadata">

**Author:** ![Telapicus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Telapicus](https://forums.unrealengine.com/u/Telapicus)\
**Post date:** [March 29, 2021, 5:09pm UTC](https://forums.unrealengine.com/t/pan-camera-based-on-parent-location/481061/2 "2021-03-29T17:09:38Z")

</div>

Nevermind i figured it out with the help of my friend, but i know what happens with the old internet and I’m not going to do that so here’s the way i did it

 ![334061-capture.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/d/d/cdd47b24de670b071b0266af4175b11ad7c42e70.png)
