# Camera positioning bug

**URL:** <https://forum.makecode.com/t/camera-positioning-bug/23831>\
**Category:** Help\
**Created:** [November 1, 2023, 7:39pm UTC](https://forum.makecode.com/t/camera-positioning-bug/23831 "2023-11-01T19:39:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![marceau](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/marceau/32/11775_2.png) [@marceau](https://forum.makecode.com/u/marceau)\
**Post date:** [November 1, 2023, 7:39pm UTC](https://forum.makecode.com/t/camera-positioning-bug/23831/1 "2023-11-01T19:39:34Z")

</div>

Bonjour,  
Voici un simple projet dans lequel, lequel on peut déplacer le cannard avec les touche fleches et lorsque celui ci va sur une tuile (fleche ↑) , la camera est censé le suivre mais, ce n’est pas le cas.  
Voici le lien: [https://arcade.makecode.com/S18200-25427-31653-90016](https://arcade.makecode.com/S18200-25427-31653-90016)

Pouriez vous m’aider ?  
Merci beaucoup!  
Good morning,  
Here is a simple project in which you can move the duck with the arrow keys and when it goes to a tile arrow ↑, the camera is supposed to follow it but this is not the case.  
Here is the link: www.chezmarceau.behttps://arcade.makecode.com/S18200-25427-31653-90016

Could you help me?  
Thank you so much!

---

<div class="post-metadata">

**Author:** ![KIKIvsIT](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kikivsit/32/10492_2.png) [@KIKIvsIT](https://forum.makecode.com/u/KIKIvsIT)\
**Post date:** [November 1, 2023, 7:42pm UTC](https://forum.makecode.com/t/camera-positioning-bug/23831/2 "2023-11-01T19:42:19Z")

</div>

Very interesting, because this seems to work:  
 ![Screenshot by Dropbox Capture](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/f/f49d1381c743e05450626b971b7bc2e010f6313a.png)

But this doesn’t.

![Screenshot by Dropbox Capture](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/7/730a692be2f6cbc967c0e8f8270f31313702fbdf.png)

---

<div class="post-metadata">

**Author:** ![WoofWoof](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/woofwoof/32/32523_2.png) [@WoofWoof](https://forum.makecode.com/u/WoofWoof)\
**Post date:** [November 6, 2023, 7:47pm UTC](https://forum.makecode.com/t/camera-positioning-bug/23831/3 "2023-11-06T19:47:37Z")

</div>

It is not working because increasing the Y position of the camera means making it go down, not up. Try changing it to increase by -50 instead of 50 and it should go up. The reason it is not going down, however, is that the camera is coded to not go out of the Tile map, so it can’t go down even though you are telling it to. Hope this helps!!!

---

<div class="post-metadata">

**Author:** ![marceau](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/marceau/32/11775_2.png) [@marceau](https://forum.makecode.com/u/marceau)\
**Post date:** [November 10, 2023, 5:03pm UTC](https://forum.makecode.com/t/camera-positioning-bug/23831/4 "2023-11-10T17:03:09Z")

</div>

thanks a lot for your help !
