erase(0, 189, 255, .60);
if (M_INDEX<=5) {
M_INDEX++;
y+=16;
}
else if (M_INDEX==6) {
M_INDEX=0;
y-=(16*6);
}
if (M_INDEX>=0) {
M_INDEX--;
y-=16;
}
else if (M_INDEX==-1) {
M_INDEX=5;
y+=(16*6);
}
switch(M_INDEX) {
case 0: //In our case, items
//Your functions here
break;
case 1:
//etc
break;
}
switch(M_INDEX) {
case 0: //In our case, items
//Your functions here
break;
case 1:
//etc
break;
}
case 0:
view.x=300; //move the view to the game play area
view.y=400;
break; //you have to put this before every new case
case 1:
view.x=300;
view.y=400;
loadVars(blabla);
Users browsing this forum: No registered users and 1 guest