Skip to content
Grace Montoya

Mi Piñata! · Interactive book

A birthday story kids can tap, poke and read along with.

A 12-page interactive picture book in Spanish for iPad, about a girl who wants a piñata for her birthday. It started from one of my own birthdays. I wrote, illustrated, animated and built it, and released it on the App Store.

2013 · Author, illustrator, animator and iOS developer · Illustrator · After Effects · Xcode

An iPad held over grass showing the Mi Piñata cover: a striped star piñata on a stick, a little bird, and buttons for Léeme, Yo lo leo and Páginas.

Designing for kids

Kids prefer chaos over control.

Children like messy over clean and surprises over instructions, so every page hides things to discover. Kids can have the book read to them or read it themselves, and simple tasks on the pages, like decorating the piñata or finding the stick, move the story along.

Hands drawing in a sketchbook: the title Piñata above a sketched piñata, with a family of characters on the facing page, surrounded by pencils and a coffee cup.
It started in a sketchbook
A flow sketch: the home screen with sound and noises toggles, picture, read-me and I-read buttons, leading to scenes 1 to 12 with a pause menu to continue, choose a page or go home.
The flow, sketched
Pencil sketches of Emilia's face and expressions, and a piñata.
Characters
A character sketch of the cat.
A pen sketch of Emilia's house: a door, a picture of a boat, a lamp, a window with a star and moon, a barking dog and a sleeping cat.
Sketch: Emilia’s house
The finished page, annotated with what moves: the boat moves, the lamp turns on and off, the window goes from night to day, the girl waves, the dog barks and the cat wakes up.
The final page, with every interaction marked
An annotated page: balloons in a tree that fly away when tapped, a cat that moves, a stick that shakes when found, and a girl who moves her arms when she finds the piñata stick.
An annotated page: the girl appears, the piñata on the table rotates, pencils make a writing movement, and the cat dances on a stool.

Art and motion

Code where it’s simple, video where it’s not.

For every interaction I decided early whether it would be animated in code or in After Effects. The balloons float away in code; the girl waving her arms was keyframed in After Effects and exported as video. I traced and coloured the final art in Illustrator, with every file named and layered so it could go straight into After Effects.

An iMac on a desk with Illustrator open on a page of the book: the cat in a tree and a pink pig.

One composition per animation

Each animation was keyframed in its own After Effects composition and exported as its own short movie, so the app could play exactly the one it needed.

Animated: a book opening.
Animated: paintbrushes wiggling in a pot.
Animated: Emilia, the girl, moving.
Animated: the cat dancing.

Building it

Nothing ships without code.

I built the book natively for iPad in Xcode. The trick behind every surprise: each interactive thing sits on the page as a still image. A tap swaps it for its video, and when the video ends the still comes back, so the page seems to come alive exactly where you touched it. Last, I recorded the story and synced the voice with the text, so kids can read and listen at the same time.

// Each surprise starts as a still image…
let tap = UITapGestureRecognizer(
  target: self, action: #selector(playVideo))
placeholderImageView.addGestureRecognizer(tap)

// …a tap plays its animation in the same spot…
@objc func playVideo() {
  let player = AVPlayer(url: url)
  playerLayer = AVPlayerLayer(player: player)
  playerLayer?.frame = placeholderImageView.frame
  view.layer.addSublayer(playerLayer!)
  player.play()
}
// …and when it ends, the still comes back.

The pattern, in code

The same tap-to-play idea, written in today’s Swift.

Animated, on an iPad: balloons in a tree float away as they're tapped, while the girl waits below.
Animated, on an iPad: the party in the garden, children and a grandmother around a piñata hanging from a tree.
Animated, on an iPad: the grandmother waving with balloons, with the page text read aloud.
Animated, on an iPad: the last page, a caterpillar in a party hat on a ball beside a rock that reads Fin.

Mi Piñata! shipped on the App Store as a 12-page interactive book, one of the most fun things I’ve ever made.