# Make a camera who follow a player

**URL:** https://discourse.processing.org/t/make-a-camera-who-follow-a-player/12471
**Category:** Coding Questions
**Created:** [July 3, 2019, 9:02am UTC](https://discourse.processing.org/t/make-a-camera-who-follow-a-player/12471 "2019-07-03T09:02:28Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)
#### Post date: [July 3, 2019, 10:49am UTC](https://discourse.processing.org/t/make-a-camera-who-follow-a-player/12471/2 "2019-07-03T10:49:41Z")

</div>

> [@How can I center an object on my screen that moves?](https://discourse.processing.org/t/how-can-i-center-an-object-on-my-screen-that-moves/12196/4):
>
> Understanding the relationship between translate, scale, and the idea of a 2D “camera” can sometimes be a bit tricky. It is worth reviewing the coordinate system and 2D transformations tutorials: [https://processing.org/tutorials/drawing/](https://processing.org/tutorials/drawing/)[https://processing.org/tutorials/transform2d/](https://processing.org/tutorials/transform2d/) However, in the end, there are three key transformations: translate to the center of the screen optionally scale the view, e.g. based on player speed or inter-player distance translate again to recenter the came…

Chrisir

---

_[View the full topic](https://discourse.processing.org/t/make-a-camera-who-follow-a-player/12471)._
