0
how to switch between 2 player
basic game
4 odpowiedzi
0
just create 2 player objects, an if statement and copy paste just changing the object referenced. not the most beautiful way. but works
0
can you give me some code idea. because i tried to use this code but its not working
char player = x;
if (player == 'x'){
some code....
player = 'y';
else if (player == y){
some code...
player = 'x';
}
0
i tried to use this also
int player= 0;
if (player== 0){
some code...
player++;
}
else if (player == 1){
some code...
player--;
}
0
thanks for replying sir....