Lesson goal: Animating exploding text

Previous: Object with air-drag | Home | Next: Animated text-banner

The printxy statement allowed you to display text on the screen at a particular x,y coordinate. This is a useful function because it treats text like graphics, so you can draw and animate with it.

In this lesson, let's draw some text that gets progressively bigger in point size, while clearing the screen in between each draw. This should make the text message "explode" on the screen. We'll use a for-loop to count through a series in increasing larger font point sizes.

Now you try. Fix the for-loop to interate from a point size of 12 up to a point size of 200, in steps of 5.

Type your code here:

See your results here:

Show a friend, family member, or teacher what you've done!

Here is a share link to your code:

Does your code work? Want to run it on your iPhone?

Here's your code:

  1. Use [Control]-[C] (Windows) or [⌘]-[C] (MacOS) to copy your code.

  2. Paste it using [Control]-[V] (Windows) or [⌘]-[V] (MacOS) into this page

  3. Then click the "Use on iPhone" button that you'll see.