AS3: A Simple Sound Class for Your Game

In this article I will be going over a simple and  basic game sound class that I whipped up in a matter of hours. This GameSoundClass, I have used this in a bunch of small projects and games. For the purpose of simplicity, code for controlling the sound levels, pitch, pan and volume have been taken out the code. The goal is just to create a basic “Sound Manager Class” for beginners to programming in OOP AS3 and anyone who just needs something quick and dirty for projects that work.

The code is located here

The downside: Using this class, you will have to load all the sounds at once, most likely in your game or programs preloader. This does not matter as much for small projects but when you start using bigger a bigger library of sounds you will notice a long load time. If you have any questions or comments please post them! You can also follow me on twitter @GabeTHEGeek as I plan to write some tutorials using AS3, C++,  and C#….or just on something cool I stumbled upon(Get the joke). Enjoy!

Tagged , , ,

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s