Camera positioning bug

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

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!

1 Like

Very interesting, because this seems to work:
Screenshot by Dropbox Capture

But this doesn’t.

Screenshot by Dropbox Capture

2 Likes

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!!!

3 Likes

thanks a lot for your help !