I have a game where at the beginning you can choose between 3 players. All that the choice will do is alter the appearance and sound files of the game.
For example : A shop owener asks if you want to practice. If you click yes, it will play the sound "yes" from the player you chose at the very beginning of the game.
Another example is that the game has some cut scenes with your player walking.
How can I make it play the one of your player?DO i ?When you choose a character, have it set something like _root.player=#.
Then when a sound or cut-scene appears,
if(_root.player=#){
blah;
}else if(_root.player=#2){
blah;
} Or something like that.anyone ?SO how do I use a variable in the code ? I say like if var_player1 then .... ?use a variable for each character?hmm if you put them in variables you should be able to accomplish it...What if your movie clips are in different scenes? Do I use global instead of root? Thanks.#If you have any other info about this subject , Please add it free.# |
|
8 January 2009 |
cameltoepants.com |
edit