Book Image

Gamesalad Essentials

By : Miguel DeQuadros
Book Image

Gamesalad Essentials

By: Miguel DeQuadros

Overview of this book

Table of Contents (16 chapters)

Adding emotion to the scene


There are a few things in the scene that I added that we didn't discuss. For example, the background image has a Play Music behavior which has a nice, soft cheery tune. Then a timer after 8 seconds; it changes the color of the actor from the blue sky to an ominous purple. To do this, simply add in three Change Attribute behaviors and change each self.color.blue(.green(.red)) to whatever value you like. Another thing I love about GameSalad: Even the color changing is powerful! After that, I added a new Play Music behavior to make it more ominous.

We now have to get our hero Kevin run off screen after Dominic gets kidnapped.

Open up our Kevin actor in the scene, and simply add in two Timer behaviors: the first one will be After 18 seconds, with a Move behavior running in the direction Magellan flew off, at a Speed of 200; and an Animate behavior with a faster frame per second value to make it look like he's running. The second timer will be After 20 seconds, with...