Reader small image

You're reading from  Stencyl Essentials

Product typeBook
Published inApr 2015
Reading LevelBeginner
Publisher
ISBN-139781784399450
Edition1st Edition
Languages
Tools
Right arrow
Author (1)
Richard Sneyd
Richard Sneyd
author image
Richard Sneyd

Richard Sneyd (BA Hons.) is the founder and CEO of CyberMyth Games, an indie game development studio based in Country Cork, Ireland. His role within the company requires that he wears many hats, including that of a programmer, designer, digital 2D and 3D artist, sound designer, scriptwriter, texture artist, leader, marketer, and business man. He is also a fully registered, qualified, and highly experienced lecturer. His specialty subjects include 3D modeling and animation, computer game programming, 2D image processing, game design, desktop audio, psychology, consumer behavior, human resources, and business management. In addition to classroom teaching, he is actively involved in online education, regularly publishing new courses, and various other learning materials, such as books and tutorials, in conjunction with CyberMyth Games. He is enthusiastic about his work, and his students and colleagues think of him as a very dedicated and accomplished teacher. All of his courses and books are characterized by a steady, incremental flow of information, and a lucid teaching style that is easy to understand and follow for all. He is a husband to his wonderful wife, Jennifer, and father to a wonderful son, Darius.
Read more about Richard Sneyd

Right arrow

Sound file designation in Stencyl


Sounds in Stencyl must be designated as either Music or Sound FX. Why is this, you may ask? In general terms, this allows Stencyl to make certain assumptions about the size of the file, and how to treat it in memory. The audio engine logically assumes that the music files will be larger than the sound FX files, and so it loads them and keeps them in the memory for the duration of the game. Sound FX files, on the other hand, are assumed to be relatively small, and so are loaded into the memory on the fly when they are called from the code, and then removed from the memory again. All of this happens under the hood, so to speak, in an effort to improve the performance of your games, so be sure to use the correct designation for your sound files!

The whip sound we just imported is Sound FX, so let's designate it by setting the Sound Type parameter to Sound Effect, as shown in the following screenshot:

Great work! Before you trigger this sound FX in the code,...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Stencyl Essentials
Published in: Apr 2015Publisher: ISBN-13: 9781784399450

Author (1)

author image
Richard Sneyd

Richard Sneyd (BA Hons.) is the founder and CEO of CyberMyth Games, an indie game development studio based in Country Cork, Ireland. His role within the company requires that he wears many hats, including that of a programmer, designer, digital 2D and 3D artist, sound designer, scriptwriter, texture artist, leader, marketer, and business man. He is also a fully registered, qualified, and highly experienced lecturer. His specialty subjects include 3D modeling and animation, computer game programming, 2D image processing, game design, desktop audio, psychology, consumer behavior, human resources, and business management. In addition to classroom teaching, he is actively involved in online education, regularly publishing new courses, and various other learning materials, such as books and tutorials, in conjunction with CyberMyth Games. He is enthusiastic about his work, and his students and colleagues think of him as a very dedicated and accomplished teacher. All of his courses and books are characterized by a steady, incremental flow of information, and a lucid teaching style that is easy to understand and follow for all. He is a husband to his wonderful wife, Jennifer, and father to a wonderful son, Darius.
Read more about Richard Sneyd