# Camera help?

**URL:** <https://forum.makecode.com/t/camera-help/45923>\
**Category:** Help\
**Created:** [September 16, 2026, 7:34pm UTC](https://forum.makecode.com/t/camera-help/45923 "2026-09-16T19:34:16Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![kirbob](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kirbob/32/34880_2.png) [@kirbob](https://forum.makecode.com/u/kirbob)\
**Post date:** [September 16, 2026, 7:34pm UTC](https://forum.makecode.com/t/camera-help/45923/1 "2026-09-16T19:34:16Z")

</div>

so i wanna know if there is a way to not make my camera go past a certain point, because right now it just centers the player the whole time. (basically i want a ceiling for the camera)

---

<div class="post-metadata">

**Author:** ![VoxelMaster64](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/voxelmaster64/32/32075_2.png) [@VoxelMaster64](https://forum.makecode.com/u/VoxelMaster64)\
**Post date:** [September 17, 2026, 5:12pm UTC](https://forum.makecode.com/t/camera-help/45923/2 "2026-09-17T17:12:31Z")

</div>

@richard

---

<div class="post-metadata">

**Author:** ![ThatCoder](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/thatcoder/32/29388_2.png) [@ThatCoder](https://forum.makecode.com/u/ThatCoder)\
**Post date:** [September 17, 2026, 9:53pm UTC](https://forum.makecode.com/t/camera-help/45923/3 "2026-09-17T21:53:44Z")

</div>

This can be done easily with tilemaps, since the camera refuses to look beyond the tilemap, you could also add invisible sprites to makes the camera stop following you when you overlap with them

---

<div class="post-metadata">

**Author:** ![Soleb244](https://avatars.discourse-cdn.com/v4/letter/s/aeb1de/32.png) [@Soleb244](https://forum.makecode.com/u/Soleb244)\
**Post date:** [September 17, 2026, 9:56pm UTC](https://forum.makecode.com/t/camera-help/45923/4 "2026-09-17T21:56:18Z")

</div>

You could do something like

On game update:

Camera x = player x

Camera y = max(player y, celing)

---

<div class="post-metadata">

**Author:** ![kirbob](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kirbob/32/34880_2.png) [@kirbob](https://forum.makecode.com/u/kirbob)\
**Post date:** [September 17, 2026, 9:59pm UTC](https://forum.makecode.com/t/camera-help/45923/5 "2026-09-17T21:59:31Z")

</div>

i don’t want to make it like that tho because one, i have code for something above it and that would make the camera stop tracking left and right movement.

---

<div class="post-metadata">

**Author:** ![Hulahoop](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/hulahoop/32/25398_2.png) [@Hulahoop](https://forum.makecode.com/u/Hulahoop)\
**Post date:** [September 18, 2026, 2:54am UTC](https://forum.makecode.com/t/camera-help/45923/6 "2026-09-18T02:54:37Z")

</div>

You can make an invisible camera sprite and when the X of the camera sprite is on the X level of what you want to stop at. make it so that the VX and VY of the camera sprite is 0

---

<div class="post-metadata">

**Author:** ![TheEarth](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/theearth/32/34579_2.png) [@TheEarth](https://forum.makecode.com/u/TheEarth)\
**Post date:** [September 18, 2026, 3:01am UTC](https://forum.makecode.com/t/camera-help/45923/7 "2026-09-18T03:01:01Z")

</div>

You could use math constrain I’ll make a demo when I get home

---

<div class="post-metadata">

**Author:** ![TheEarth](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/theearth/32/34579_2.png) [@TheEarth](https://forum.makecode.com/u/TheEarth)\
**Post date:** [September 18, 2026, 6:01pm UTC](https://forum.makecode.com/t/camera-help/45923/8 "2026-09-18T18:01:17Z")

</div>

> **[cool constrain thingy](https://arcade.makecode.com/34815-00880-62707-59229)**
>
> hold a to constrain it release a to unconstrain it

demo
