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!


Joe - The asset package does have any .mp3. Thank Luringen for the assistance. I would not have guessed that in 100 years. I guess old, literal programmers think too linearly ;)
0 7 years, 10 months ago
If you want to use the .png music files, click "File", select "Import Resource..." and select the .png. The music should be added to the game.
1 7 years, 11 months ago
I've had the same trouble with the other people...but dragging and dropping from desktop after renaming it with "*.mp3" allows it to load. However, it automatically renames it from whatever you used as the desktop name.

You have to go under the property tabs after you load it to change the name to what you want it to be called

1 8 years, 2 days ago
I renamed files to .mp3 and drag n dropped to dashboard sounds and they are working
1 8 years, 5 days ago
dont create a sound on dashboard just drag the files and drop it there
theres no sound because its like reading it but give it a little time

0 8 years, 1 week ago
Hmm, even if you drag and drop there seems to be a lot of problems on Windows with audio as a png file type. I taught a room full of students and half couldn't drop the png into Stencyl as it said "only mp3 supported" the other half had an error message appear when they published the swf as Flash couldn't play it.

I think this tutorial should be updated with audio that works with windows, I'm sure MacOSX is capable of reading these files, but Windows has a heart attack.

0 8 years, 1 week ago
I found that drag and drop didn't work either; even with other mp3 files.

The easiest solution seems to be using Stencyl Forge to download some music and sound effects.

2 8 years, 1 week ago
I got stuck with this too. I think the tutorial needs to be updated as the sound files are actually in .png format. I'm not even sure how it is even possible to store mp3 information in a png file!

Certainly it is confusing as most authors will be using .mp3 files in their own games, I think it is bad form to confuse beginners who are already struggling to learn Stencyl.. getting confused with file types too.

2 8 years, 1 week ago
You don't need to convert anything. All you need to do is open the Sound Editor and drag one of the png files for the music/SFX into the folder. It will add each of them as sound files.
-1 8 years, 3 weeks ago
Use any mp3 files provided in the 'Resource' folders of sample games given by Stencyl as place holders.
0 8 years, 3 weeks ago

Sign In to Comment