Play a sound from a rule

When the ball bounces, play Bounce. Sounds live in the โ™ช Sound column of the Events tab.

Treetop Trek โ€” NutHouse
The sidebar SOUNDS section for Treetop Trek, listing the sounds a rule can choose from
A rule can only play sounds that are in this list.

The Sound column

In the Events tab, the second column is โ™ช Sound. It is not an object. It is where every sound action goes. Click the โ™ช cell in a rule's row and choose what to play.

  • Play a sound plays a sound once. This is the one you use most.
  • Play music (loops) plays a tune over and over. See Music and volume.

How to make a bounce go boing

  1. Add Bounce to the game: sidebar SOUNDS, + Built-in sound, click Bounce.
  2. Open the Events tab and find the row where Ball collides with Paddle.
  3. Click the cell in the โ™ช Sound column. Choose Play a sound.
  4. Pick Bounce in the Sound list and click Add.
  5. Press โ–ถ Play level.
WhenBall collides with Paddle
DoBounce BallPlay a sound: Bounce

Red rules are the sound rules

Sounds nearly always belong in red rules, the ones that happen once at a moment: Collides with, Upon pressing a key, Lands on the ground. A rule that is true all the time, like Is overlapping, would start the sound sixty times a second. That makes a horrible buzz. If a sound sticks or stutters, that is why. See Red rules happen once.

Good moments for a sound

Collides with another objectCoin for collecting, Hit for a baddie, Bounce for a ball.
Upon pressing a keyJump when Space goes down, Laser when Fire is pressed.
Lands on the groundFootstep when a Platform sprite lands.
There are none of these leftWin when the last brick goes.
Compare the number of livesGame over when lives reach 0.

Still stuck?

Try the Chocobreak tutorial, open a sample game and read its rules, or look at the questions people ask.