O'Reilly logo

Learning MIT App Inventor: A Hands-On Guide to Building Your Own Android Apps by Mark Sherman, Derek Walter

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

ImageSprite

The ImageSprite component reacts to touches and drags, and it can interact with other image sprites. To use it, you must place it on a canvas.

An ImageSprite is a small image that is on the canvas. You can change what picture the ImageSprite shows, both in the Designer and in the Blocks Editor. A basic example of changing the picture is a 2D game in which the character can go left or right. You might want to switch to a right-facing image for the sprite when it is traveling right and then to left-facing when going left. The ImageSprite can also be set to rotate or not. When set, the picture of the ImageSprite appears to rotate to match the ImageSprite’s heading. When unset, regardless of the ImageSprite’s heading, the image always ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required