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

Get Learning MIT App Inventor: A Hands-On Guide to Building Your Own Android Apps now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.