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

Animation Examples

Before we dive into a full-blown app, let’s explore a few examples of how these animation components can be used. This example does not use the built-in speed and heading of the sprite. You can make a sprite move in many ways, including setting a speed and using a clock.

In Figure 7.5, we have programmed a sprite to move its way vertically across the screen.

Image

Figure 7.5 The ball will automatically move vertically on the screen.

For this example, we have placed a ball on a canvas. We also need the Clock, which is an invisible component from the User Interface section of the palette. After putting all these on the Designer, ...

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