MIT App Inventor Compass

I am following the Compass tutorials for MIT App Inventor 2 by PuraVida Appa and Bedemo. However, following these tutorials my compass spins by its top right corner, not from its center like a compass should. I had hoped the smoother fluid update from Bedemo would fix this, but it just made it slower and worse. Is it supposed to be spinning by its corner, or have I done something wrong? I understand why the corner is its “center” point, but how do you make the center of the sprite the actual center?

1 Like

See this thread for an update

Taifun

use this one to fic the actual center
When placing the compass sprite use this line
CompassSprite.X = Canvas.Width/2 - CompassSprite.Width/2
CompassSprite.Y = Canvas.Height/2 - CompassSprite.Height/2