//This script will play the 'secret' SFX when you step on a trigger combo type
ffc script StepSecret{//name of the ffc script
void run(int x, int y, int combo){//D0 equals the x co-ordinate and D1 equals the y co-ordinate of the ffc you want the combo to appear
int secret = ComboAt(x,y);//set D2 to the number of the combo you want to make appear within the x and y co-ordinates
z = 1;
while(true){//if the statement is true, it passes on to the next line
if(Screen->ComboD[secret] == combo){//checks if the combo appears on the screen when you step on a trigger combo type
Game->PlaySound(SFX_SECRET);//plays the secret sfx when the combo appears
z = 0;//sets z to 0 so the sfx won't play again
}
Waitframe();//quits the script
}//end of void run
}// end of code
}//end of script
works great with the secret combo flags 16 - 31.
Set D0 to the x co-ordinate , set D1 to the y co-ordinate, set D2 to the combo I.d of the combo you want to make appear. Also set the x and y co-ordinates in the tabs in the freeform combo set up. Choose a transparent combo and you are good to go.
Edited by drzchulo973, 30 November 2008 - 04:09 AM.