Monday, 31 January 2011

Coding for my game Instruction Screen

In the instruction screen for my game I have a small script to start the game with a button and also stop the sounds for the menu's because I have different music for the main game.
There is a (stop();) on the first line to tell the script to stop on this frame, then under that we have
exactly the same actionscript as the first button script but we have called it begin instead and the button is called startbtn1. Then the new item in this script is (channel.stop();) this stops the sound we created in the first frame but i have put it in the button so when we go to the next scene the sound would be removed.

No comments:

Post a Comment