NeoFirst doesn't have falling Link tiles yet.
Here's a slightly smaller untested script that I am likely to use in NeoFirst:
Code:
// The flag CF_SCRIPT1 denotes a pit.
ffc script BottomlessPit {
void run(int fallingtile, int sfx) {
int timer = 0;
while(true) {
if(Screen->ComboF[ComboAt(Link->X+8, Link->Y+8)] == CF_SCRIPT1 && Link->Z == 0) {
timer+=1;
if(Link->Action != LA_DROWNING) {
Link->Action = LA_DROWNING; // Link is automatically invisible on non-water tiles.
Game->PlaySound(sfx);
}
Screen->DrawTile(2, x, y, fallingtile + Floor(timer/8), 1, 1, 6, 1, 0, 0, 0, 0, true, 128);
}
else
timer = 0;
Waitframe();
}
}
}