# Orthographic Follow Player

**URL:** <https://forum.defold.com/t/orthographic-follow-player/64249>\
**Category:** Questions\
**Created:** [January 9, 2020, 7:59am UTC](https://forum.defold.com/t/orthographic-follow-player/64249 "2020-01-09T07:59:16Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anthroyd](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/anthroyd/32/19574_2.png) [@Anthroyd](https://forum.defold.com/u/Anthroyd)\
**Post date:** [January 9, 2020, 7:59am UTC](https://forum.defold.com/t/orthographic-follow-player/64249/1 "2020-01-09T07:59:16Z")

</div>

Hi. I’m having trouble making the orthographic camera (from the asset portal) follow my player. Here are screenshots of my collection hierarchy and camera script arguments:

 ![1](https://forum-defold-uploads.b-cdn.net/original/3X/8/c/8c2ac22fe0907db872717ff4dcbb69b84a7bc3cf.png)

 ![2](https://forum-defold-uploads.b-cdn.net/original/3X/c/0/c0df4222f7f53169242d315656367fc673ec782f.png)

 ![3](https://forum-defold-uploads.b-cdn.net/original/3X/9/c/9cd7238fa73b7f3d48a2257cc8169d54a2f5c079.png)

I’m able to move my player using WASD, but the camera does not move along with it. Nor does the camera center itself on the player either. The zoom works, so I know the camera exists and is enabled.

---

<div class="post-metadata">

**Author:** ![TheKing0x9](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/theking0x9/32/13588_2.png) [@TheKing0x9](https://forum.defold.com/u/TheKing0x9)\
**Post date:** [January 9, 2020, 9:48am UTC](https://forum.defold.com/t/orthographic-follow-player/64249/2 "2020-01-09T09:48:27Z")

</div>

In the follow target section of your camera, put the id of your player,.

---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [January 9, 2020, 3:33pm UTC](https://forum.defold.com/t/orthographic-follow-player/64249/3 "2020-01-09T15:33:41Z")

</div>

Exactly. You need to provide the id of the object to follow.

---

<div class="post-metadata">

**Author:** ![Anthroyd](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/anthroyd/32/19574_2.png) [@Anthroyd](https://forum.defold.com/u/Anthroyd)\
**Post date:** [January 9, 2020, 4:48pm UTC](https://forum.defold.com/t/orthographic-follow-player/64249/4 "2020-01-09T16:48:10Z")

</div>

![da](https://defold-forum-bucket.nbg1.your-objectstorage.com/original/3X/d/9/d94a18aebaadc5e4734e3b027fd17235f6609f2a.png)

Still isn’t doing anything. Tried it without the ‘/’ as well. Also tried ticking the “follow immediately” box. That’s the correct url, right? “Player” id is a root node of the collection.

---

<div class="post-metadata">

**Author:** ![Potota](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/potota/32/33404_2.png) [@Potota](https://forum.defold.com/u/Potota)\
**Post date:** [January 9, 2020, 4:55pm UTC](https://forum.defold.com/t/orthographic-follow-player/64249/5 "2020-01-09T16:55:56Z")

</div>

Did you try ticking the `Follow` box?

---

<div class="post-metadata">

**Author:** ![Anthroyd](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/anthroyd/32/19574_2.png) [@Anthroyd](https://forum.defold.com/u/Anthroyd)\
**Post date:** [January 9, 2020, 5:40pm UTC](https://forum.defold.com/t/orthographic-follow-player/64249/6 "2020-01-09T17:40:34Z")

</div>

That helped, but why is there a Follow box along with two other Follow Vertical / Horizontal boxes? Also, what’s up with this camera? It’s moving faster than my character moves. If I walk just a few tiles, the camera is already far away from my character.

---

<div class="post-metadata">

**Author:** ![Potota](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/potota/32/33404_2.png) [@Potota](https://forum.defold.com/u/Potota)\
**Post date:** [January 9, 2020, 6:37pm UTC](https://forum.defold.com/t/orthographic-follow-player/64249/7 "2020-01-09T18:37:04Z")

</div>

`Follow Vertical` and `Follow Horizontal` are settings, in case you only want the camera to follow in one axis. As for the camera moving faster, try resetting all the options to default except for `Follow Target` and `Follow`.

---

<div class="post-metadata">

**Author:** ![Anthroyd](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/anthroyd/32/19574_2.png) [@Anthroyd](https://forum.defold.com/u/Anthroyd)\
**Post date:** [January 9, 2020, 7:21pm UTC](https://forum.defold.com/t/orthographic-follow-player/64249/8 "2020-01-09T19:21:25Z")

</div>

Thanks for your help, but I was getting other weird issues to, like licking the “follow horizontally” button would change the camera’s movement to just shoot wildly out of control. I switched to the “Rendercam” asset instead and it’s working beautifully. Not sure what the problems were.

---

<div class="post-metadata">

**Author:** ![88.josh](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/88.josh/32/20137_2.png) [@88.josh](https://forum.defold.com/u/88.josh)\
**Post date:** [January 9, 2020, 8:13pm UTC](https://forum.defold.com/t/orthographic-follow-player/64249/9 "2020-01-09T20:13:38Z")

</div>

Licking the buttons isn’t supported by

> [@Anthroyd](#):
>
> licking the “follow horizontally” button would change the camera’s movement to just shoot wildly out of control.

Licking the buttons isn’t supported by the editor. Even on a touchscreen, you’re going to get unexpected behaviour

---

<div class="post-metadata">

**Author:** ![Anthroyd](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/anthroyd/32/19574_2.png) [@Anthroyd](https://forum.defold.com/u/Anthroyd)\
**Post date:** [January 9, 2020, 9:47pm UTC](https://forum.defold.com/t/orthographic-follow-player/64249/10 "2020-01-09T21:47:46Z")

</div>

Oh, that makes sense. I will put in a feature request. Thanks!
