To load sounds into the game, we will create a method called
gameclass, add a new method header called
Method LoadSounds:Int ()
"bing"sound into the
sndBingobject. Remember: don't add the file extension of your sound file to the filename. Now, close the method.
sndBing = eng.LoadSound("bing") Return 0 End
With this separate method to load sounds, it will be easy for you to add other sounds as well. Just create another sound object in the data section, and then load the sound here.
Layers are like groups. They are rendered in their order of creation, unless you tell the engine to do it otherwise.