Why is it moving especielly here?



Hello! I’m trying to make an interface for items. Its position depends of the Camera’s positon. But each time i’m passing througn the 11th row it moves, i can’t understend why.

2 Likes

Hola Darcia! Welcome to the Makecode forum! I can’t really see what the problem is with just the pictures, but if you post a link to your project then I might be able to. If I find a solution I’ll let you know! Someone else might be able to figured it out if I can’t.

4 Likes

here is my project!

2 Likes

Ok. I changed my language to French in Makecode to figure this out. It looks like you are trying to keep the item bar thing in the same place relative to the camera using a bunch of math, but there’s no need for that because there’s a block for it! It’s in the Sprites section. You have to get the “Définir (sprite) [destruction automatique] ” and change it to “[relatif à la caméra]” and it should lock the object relative to the camera! Just make sure to turn it < on>!
I hope this helps! :slight_smile:

4 Likes

thanks!!! It works perfectly now^^

4 Likes