197,343

Views

Beginner

Level

71

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!

71 Comments

Luringen
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 6 years, 3 months ago
way2insane
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 6 years, 4 months ago
Almakos
I renamed files to .mp3 and drag n dropped to dashboard sounds and they are working
1 6 years, 4 months ago
Eleenrei
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 6 years, 5 months ago
beyondtool
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 6 years, 5 months ago
mhughson
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 6 years, 5 months ago
beyondtool
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 6 years, 5 months ago
Ceric
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 6 years, 5 months ago
Razor04
Use any mp3 files provided in the 'Resource' folders of sample games given by Stencyl as place holders.
0 6 years, 5 months ago
hamsterlabs
That's true.
I cannot convert the .png files by simply changin the .png to .mp3.^^
It's the green music picture from the mp3 folder I think.
The sounds are not necessary to understand the tutorial, but sounds are necessary to hold 40% of playin fun...(in some kind of games of course)

@k0untd0une: You can use free sounds from the assets store. Or make same own by simly talkin to your micro...

0 6 years, 5 months ago

Sign In to Comment