# Move Player unindependent from camera

**URL:** <https://forums.unrealengine.com/t/move-player-unindependent-from-camera/336331>\
**Category:** Character & Animation\
**Tags:** top-down-template, unreal-engine, question\
**Created:** [October 24, 2015, 12:48pm UTC](https://forums.unrealengine.com/t/move-player-unindependent-from-camera/336331 "2015-10-24T12:48:21Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_8d9afd26](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_8d9afd26](https://forums.unrealengine.com/u/anonymous_user_8d9afd26)\
**Post date:** [October 24, 2015, 12:48pm UTC](https://forums.unrealengine.com/t/move-player-unindependent-from-camera/336331/1 "2015-10-24T12:48:21Z")

</div>

Hello!  
In my Top Down Game I want, that the camera stays in the same postion but moves forward so that the player can move how he wants but the camera just moves forward.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_087ae450](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_087ae450](https://forums.unrealengine.com/u/anonymous_user_087ae450)\
**Post date:** [October 24, 2015, 4:58pm UTC](https://forums.unrealengine.com/t/move-player-unindependent-from-camera/336331/2 "2015-10-24T16:58:02Z")

</div>

First set your cameras rotation and position World (absolute)

![63917-world+location.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/5/5/d55c8beca09cdbb0b1b6b3e628b65f6dcf68e9d7.png)

Then on event tick update your cameras position.

 ![63955-location.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/8/7/5879b8f52aa3cce331f2ce5241e0cef137752add.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_8d9afd26](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_8d9afd26](https://forums.unrealengine.com/u/anonymous_user_8d9afd26)\
**Post date:** [October 25, 2015, 12:23pm UTC](https://forums.unrealengine.com/t/move-player-unindependent-from-camera/336331/3 "2015-10-25T12:23:49Z")

</div>

Thanks for your answer but the camera still moves like the example ship.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_087ae450](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_087ae450](https://forums.unrealengine.com/u/anonymous_user_087ae450)\
**Post date:** [October 25, 2015, 1:41pm UTC](https://forums.unrealengine.com/t/move-player-unindependent-from-camera/336331/4 "2015-10-25T13:41:30Z")

</div>

Because need to set location and rotation both and camera must be independent, not child of something.So check your script or later i will make script for you

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_8d9afd26](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_8d9afd26](https://forums.unrealengine.com/u/anonymous_user_8d9afd26)\
**Post date:** [October 25, 2015, 1:52pm UTC](https://forums.unrealengine.com/t/move-player-unindependent-from-camera/336331/5 "2015-10-25T13:52:00Z")

</div>

Please make a Skript for me. When i do it it wont work

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_087ae450](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_087ae450](https://forums.unrealengine.com/u/anonymous_user_087ae450)\
**Post date:** [October 26, 2015, 9:55am UTC](https://forums.unrealengine.com/t/move-player-unindependent-from-camera/336331/6 "2015-10-26T09:55:13Z")

</div>

There is two part.  
1st you must create independent camera

 ![64144-begin+play.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/d/2/4d29065eaa507f18faaa9cb081a42f08e41b64ec.png)

then you must take care of cameras location so.

 ![64145-event+tick.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/b/b/abb5d278f7435ab90090edfc429a129a626c0a93.png)

if you will not get successful result,write a comment please, because it works for me.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_8d9afd26](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_8d9afd26](https://forums.unrealengine.com/u/anonymous_user_8d9afd26)\
**Post date:** [October 26, 2015, 7:20pm UTC](https://forums.unrealengine.com/t/move-player-unindependent-from-camera/336331/7 "2015-10-26T19:20:43Z")

</div>

Now the camera does not move anyway and is fixed on the ground.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_087ae450](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_087ae450](https://forums.unrealengine.com/u/anonymous_user_087ae450)\
**Post date:** [October 26, 2015, 8:21pm UTC](https://forums.unrealengine.com/t/move-player-unindependent-from-camera/336331/8 "2015-10-26T20:21:19Z")

</div>

yea it’s laying ground but when you are moving forward it’s stays in its place, but when you are moving left or right it’s coming with you or not?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_8d9afd26](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_8d9afd26](https://forums.unrealengine.com/u/anonymous_user_8d9afd26)\
**Post date:** [October 26, 2015, 8:37pm UTC](https://forums.unrealengine.com/t/move-player-unindependent-from-camera/336331/9 "2015-10-26T20:37:25Z")

</div>

nope, i can see the ship flying around but the camera does not move.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_087ae450](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_087ae450](https://forums.unrealengine.com/u/anonymous_user_087ae450)\
**Post date:** [October 26, 2015, 9:07pm UTC](https://forums.unrealengine.com/t/move-player-unindependent-from-camera/336331/10 "2015-10-26T21:07:07Z")

</div>

Can you show me your event tick and event begin play functions with picture.  
that part what i showed you

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_8d9afd26](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_8d9afd26](https://forums.unrealengine.com/u/anonymous_user_8d9afd26)\
**Post date:** [October 27, 2015, 7:14pm UTC](https://forums.unrealengine.com/t/move-player-unindependent-from-camera/336331/11 "2015-10-27T19:14:47Z")

</div>

![64377-unreal2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/4/6/d4600f697b4dec1d4cc483785085c762df9a7030.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_087ae450](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_087ae450](https://forums.unrealengine.com/u/anonymous_user_087ae450)\
**Post date:** [October 28, 2015, 9:47am UTC](https://forums.unrealengine.com/t/move-player-unindependent-from-camera/336331/12 "2015-10-28T09:47:39Z")

</div>

on tick event change camera reference with new var0.

 ![64467-camera.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/1/c/b1c036d546cba998f54c81a74e894bff29f8b63f.png)

cameras starting position not will be good but after you get result change it’s location from spawning.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_8d9afd26](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_8d9afd26](https://forums.unrealengine.com/u/anonymous_user_8d9afd26)\
**Post date:** [October 28, 2015, 3:32pm UTC](https://forums.unrealengine.com/t/move-player-unindependent-from-camera/336331/13 "2015-10-28T15:32:16Z")

</div>

thank you so much, it works!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_8d9afd26](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_8d9afd26](https://forums.unrealengine.com/u/anonymous_user_8d9afd26)\
**Post date:** [October 28, 2015, 4:28pm UTC](https://forums.unrealengine.com/t/move-player-unindependent-from-camera/336331/14 "2015-10-28T16:28:29Z")

</div>

and how can i just set this for the x axis? and set another value for the z axis and the rotation?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_087ae450](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_087ae450](https://forums.unrealengine.com/u/anonymous_user_087ae450)\
**Post date:** [October 28, 2015, 5:50pm UTC](https://forums.unrealengine.com/t/move-player-unindependent-from-camera/336331/15 "2015-10-28T17:50:53Z")

</div>

You can do it easy. On camera spawn set that transform , which you want.

 ![64548-transform.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/5/d/25d68ff0a8e41a9f29f2b3b5516dc4486b3a4fa5.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_087ae450](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_087ae450](https://forums.unrealengine.com/u/anonymous_user_087ae450)\
**Post date:** [October 28, 2015, 6:02pm UTC](https://forums.unrealengine.com/t/move-player-unindependent-from-camera/336331/16 "2015-10-28T18:02:40Z")

</div>

You can Change transform with Set world Transform in every part of code , it would be work correctly again. After you get Successful result , check this problem solved. good luck

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_8d9afd26](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_8d9afd26](https://forums.unrealengine.com/u/anonymous_user_8d9afd26)\
**Post date:** [November 7, 2015, 10:44am UTC](https://forums.unrealengine.com/t/move-player-unindependent-from-camera/336331/17 "2015-11-07T10:44:56Z")

</div>

it has worked. thank you again!
