How can I set different sound for different players by using [[SimpleAudioEngine sharedEngine] playE
- by srikanth rongali
I need to set sounds for different players in my game. There are 10 players. And I have 10 sounds.
The players are loaded int his way
for( int i = 1; i <5; i++ )
{
[playerAnimation addFrameWithFilename: [NSString stringWithFormat:@"Player %02d gun draw_%02d.png", playerNumber, i]];
}
How can I set the sounds in this way by giving the filenames. And player1 shoots player1sound should play.
How can I do it using
[[SimpleAudioEngine sharedEngine] playEffect:@"player1.sound.wav"];