187,651

Views

Beginner

Level

70

Comments

Crash Course 2: Invaders - Part 5

by Hectate (Updated on 2015-02-01)


Part 5: Importing Sounds

Step 30: Now it’s time to import our music and sound files. This time we’re going to show you a different way to import assets, by dragging and dropping files. First, click on the Dashboard and then on Sounds.

Step 31: With the sound files on your desktop (General Space Shooter Spacey Level.mp3 and Explosion.mp3), click on one and drag it over into the dotted line box (shown below).

Remember, we need to go back to the Dashboard to drag the second file in also.

Step 32: Now you’ll have two sounds. Make sure each sound is set to the correct type, as shown (the music should be set to Music, the explosion sound effect set to Sound Effect).

With all our assets in place, it’s time to set up the Scene that will function as our main level.

Click here to go to Part 6.

Disclaimer: Use comments to provide feedback and point out issues with the article (typo, wrong info, etc.). If you're seeking help for your game, please ask a question on the forums. Thanks!

70 Comments

candytripn
Wow.. whats the constant problems in these beginner crash courses? Doesn't work with variable bitrate.. thanks for the mp3 >_<
0 2 years, 9 months ago
hexodin
The sound effect for explosion is encoded on a Variable BitRate MP3, but Stencyl only supports Constant BitRate.
0 2 years, 9 months ago
iaindw1981
I can't get the game to start due to problems with the sound file type. Apparently I need to import the explosion sound as an OGG file, which I can't seem to do in the sound import window. If I try to import it as an MP3 it says something about a variable bitrate, which I don't understand. Any ideas
0 2 years, 9 months ago
Elenita
I have a mac and I had the same problems with the audio files and I got it working:
1.- I downloaded Audacity audio editor.
2.- I assigned Audacity as the Sound editor by default in Stencyl application (go to Preferences).
3.- Then, I opened each of the audio files with Audacity and I clicked on "File -> Edit metadata..." and I cleared the metadata.
4.- Finally on Audacity, I saved the Project and clicked on "File -> Export audio..." selecting mp3 format.
4.1.- If it says you don't have the file "libmp3lame.dylib", download Lame Library v3.98.2 for Audacity.
Now, you should drag

2 2 years, 9 months ago
mmklai
explosion mp3 cannot be imported, it said "MP3 can't have a variable bitrate".
2 2 years, 10 months ago
steamfunk
How do I re-encode with a fixed bit rate? i have removed the meta data, now it says i have to fix the bit rate????????????????
2 2 years, 10 months ago
Kickiam
For those having problems with the MP3s, try following Ekimmai's instructions.
2 3 years, 1 month ago
jameswuisawesome
How to remove meta data on Windows 7:
1. Right Click File
2. Select Properties
3. Click the Details tab
4. Click Remove Properties and Personal Information (at the bottom)
5. Select remove the following properties from this file
6. Press Select All
7. Press OK

Hoped I helped!

4 3 years, 1 month ago
synbios128
I've tried the Audacity route outlined below. Didn't work. I've tried downloading the sounds from StencylForge. They play fine when testing them out in StencylForge but not when its imported into the Dashboard... This has been a problem for most people for a VERY LONG time and needs to be fixed if you want more customers to stick with you after going through the Crash Courses. Asset pipelines are just supposed to work.
0 3 years, 3 months ago
funzrey
I was too lazy to fix the bitrate or anything so i just got them from StencylForge, It's much easier and faster, just search em' up
2 3 years, 4 months ago

Sign In to Comment