switch(cloneindex){
case 0:{ChangeAnimation("Event Actor", "1down", FORWARD);strcpy(reg_inputprint.text, "1");break;}
case 1:{ChangeAnimation("Event Actor", "2down", FORWARD);strcpy(reg_inputprint.text, "2");break;}
case 2:{ChangeAnimation("Event Actor", "3down", FORWARD);strcpy(reg_inputprint.text, "3");break;}
case 3:{ChangeAnimation("Event Actor", "4down", FORWARD);strcpy(reg_inputprint.text, "4");break;}
};
strcpy(reg_inputprint.text,inputpress);
switch(cloneindex)
{
case 0:
{
ChangeAnimation("Event Actor", "1down", FORWARD);
strcpy(reg_inputprint.text, "1");
break;
}
case 1:
{
ChangeAnimation("Event Actor", "2down", FORWARD);
strcpy(reg_inputprint.text, "2");
break;
}
case 2:
{
ChangeAnimation("Event Actor", "3down", FORWARD);
strcpy(reg_inputprint.text, "3");
break;
}
case 3:
{
ChangeAnimation("Event Actor", "4down", FORWARD);
strcpy(reg_inputprint.text, "4");
break;
}
} // switch(cloneindex)
strcpy(reg_inputprint.text,inputpress);
switch(cloneindex)
{
case 0:
ChangeAnimation("Event Actor", "1down", FORWARD);
strcpy(reg_inputprint.text, "1");
break;
case 1:
ChangeAnimation("Event Actor", "2down", FORWARD);
strcpy(reg_inputprint.text, "2");
break;
case 2:
ChangeAnimation("Event Actor", "3down", FORWARD);
strcpy(reg_inputprint.text, "3");
break;
case 3:
ChangeAnimation("Event Actor", "4down", FORWARD);
strcpy(reg_inputprint.text, "4");
break;
} // switch(cloneindex)
strcpy(reg_inputprint.text,inputpress);
BeyondtheTech wrote:I believe you can do without the brackets between the case steps, no? I don't have any in mine and it seems to separate the functions properly.
Users browsing this forum: No registered users and 1 guest