All the image sprites get messed up when I test the game on a device

Hey guys! I really hope that somebody can help me.

I've been working on my game for quite some time now and have put a lot of hours into it. I recently asked a friend to test it on their Android phone. They downloaded it, but to my surprise, all the ImageSprites were shifted to the left and didn’t line up where they’re supposed to be.

In the MIT App Inventor editor, everything looks perfectly aligned, but when testing it on a phone, all the sprites are out of place.

As an example: Those food items should be at the spot where they're in the picture however when you test it, they're on the red area.
image

Can somebody please help me?

See articles 3 and 4 on responsive design.

Take into account the screen height and width when sizing and positioning components and sprites.

Also, check for sprite cannibalism.

What's sprite cannibalism?

Oh I see! I've read that there is an option to fix it without changing everything. Right? How exactly do I make that work?

Also, I am a bit confused what percentage I should put for ImageSprites.

The canvas is not necessarily affected by responsive vs fixed sizing, depends what you are doing.

What are your canvas dimensions/settings and your sprite positional settings?

I will assume you have responsive sizing on for your app, which is the default.

image
That's my Canva's sizing settings. But what the issue is: all canvas are moved when testing the game.

Those on the left are just place holder images for now but everything gets moved to the left when testing
image

Looks like you have a canvas size ratio of 1.5 : 1

Two choices:

Set the width of your canvas to e.g. 360w & 240h (this should fit most phones in portrait) or 510w : 340h if using landscape. You may then have to adjust the positioning of all your sprites. Ensure you have Origin for each sprite set to 0.5/0.5, then you can set the centres.

Keep width at 100 percent, and position your sprites based upon a percentage of that width (get the canvas width and calculate position. You may need to calculate canvas height as well, to keep the size ratio.