The game file to import and load for this session is 5961_07_03.stencyl
.
Pickup SFX
.Collides with Collectibles
event:We now have a second sound effect in our game: a pickup sound effect is played as each piece of fruit is collected.
After downloading the sound effect from StencylForge, the process to make the sound play took only a few changes.
We have created a Pickup SFX
event in the Sound Management
behavior, which plays the appropriate sound effect when the custom event PickupSFX
is triggered. Now, whenever we need to play the pickup sound effect in our game, we can simply trigger the PickupSFX
event in the Sound Management
behavior! In our game, this sound effect is going to be played whenever the monkey collects a piece of fruit.
We already have a Fruit Collected
event in the
Manage Player Collisions
behavior, so our final step was to insert a trigger for the PickupSFX
event.
The game file to import and load for this session is 5961_08_04.stencyl
.
We've created a behavior for managing sounds within our game, and we have worked step-by-step through the process of adding sound effects to different actions: jumping and collecting fruit.
Using the resources in StencylForge, try implementing sound effects for the following actions that occur within the game:
Also consider which other actions within the game would benefit from accompanying sound effects.
Appendix, Planning, Resources and Legal Issues, contains information about locating and creating new sound effects for use within our games.
Be aware that too many sound effects can be very distracting for the player!
18.116.63.174