char * key = GetKeyState();
yvelocity+=1.2;
switch(STATE)
{
case 2:
if(key[KEY_RIGHT]==0)
{
ChangeAnimation("Event Actor", "Player STEP right 01", FORWARD);
x+=15;
STATE=8;
}
break;
case 3:
if(key[KEY_LEFT]==0)
{
ChangeAnimation("Event Actor", "Player STEP left 01", FORWARD);
x-=15;
STATE=9;
}
break;
case 4:
x+=2.9;
break;
case 5:
x-=2.9;
break;
case 8:
if(animpos==5)
{
// Put play sound here
}
case 9:
if(animpos==5)
{
// Put play sound here
}
}
if(STATE== 8 || STATE==9)
{
if(animpos==5)
{
PlaySound2("data/BUM.wav", 1, 1, 0);
}
}
if(sound1==0){
sound1=PlaySound2("data/BUM.wav", 1, 1, 0);
}
Users browsing this forum: No registered users and 1 guest