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

Smoother Animation

You might have noticed that the animation in the last sequence isn’t exactly the smoothest. Fortunately, you have a remedy for this. In the Properties box from the Designer, click Clock and look at the TimerInterval box (see Figure 7.7).

Image

Figure 7.7 The TimerInterval property of the Clock component.

Reducing the value causes the sprite to refresh more regularly and provides smoother scrolling across the screen instead of a choppy effect. Changing the TimerInterval property of the Clock in this section works exactly the same as changing the ImageSprite’s interval, as we discussed in the section “ImageSprite.” The lower the ...

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