Joe123
10-28-2007, 11:18 AM
if(usecape == 1){
timer3++;
if(timer3 == 15){switch2 = 1;}
if(switch2 == 1 && Link->Z > 18){
Link->Item[invis] = true;
timer2++;
Link->InputA = false; Link->InputB = false;
if(Link->Dir == DIR_UP){Screen->DrawTile(2, Link->X, Link->Y-22, tile2, 1, 1, 6, 1, 0, 0, 0, 0, true, 128);}
if(Link->Dir == DIR_DOWN){Screen->DrawTile(2, Link->X, Link->Y-22, tile2+1, 1, 1, 6, 1, 0, 0, 0, 0, true, 128);}
if(Link->Dir == DIR_LEFT){Screen->DrawTile(2, Link->X, Link->Y-22, tile2+2, 1, 1, 6, 1, 0, 0, 0, 0, true, 128);}
if(Link->Dir == DIR_RIGHT){Screen->DrawTile(2, Link->X, Link->Y-22, tile2+3, 1, 1, 6, 1, 0, 0, 0, 0, true, 128);}
if(Link->Z <18){usecape = 0; Link->Item[invis] = false; switch2 = 0; timer2 = 0; timer3 = 0;}
if(timer2 == 60){usecape = 0; Link->Item[invis] = false; switch2 = 0; timer2 = 0; timer3 = 0;}
}
}
Right, so I modified the hover boots and the feather into the cape. The only problem with it though really is that when you move between two screens whilst flying, Link dissapears, because he's just a little drawtile function :P
Can anyone think of a better way of doing this? That doesn't involve FFCs?
This if clause is just part of the global script. I thought of making the LTM actually make Link into flying Link rather than invisible Link and drawtile, but it's taken quite a lot of effort to get invisible Link with my arrangement of Link tiles, and I don't really want to have to use up another tilesheet and a half of Link tiles.
Here we go:
http://www.youtube.com/watch?v=7ZRNcXvUi1E
I forgot to show it leaving the screen though. Ah well, I'm sure you can all imagine what happens.
timer3++;
if(timer3 == 15){switch2 = 1;}
if(switch2 == 1 && Link->Z > 18){
Link->Item[invis] = true;
timer2++;
Link->InputA = false; Link->InputB = false;
if(Link->Dir == DIR_UP){Screen->DrawTile(2, Link->X, Link->Y-22, tile2, 1, 1, 6, 1, 0, 0, 0, 0, true, 128);}
if(Link->Dir == DIR_DOWN){Screen->DrawTile(2, Link->X, Link->Y-22, tile2+1, 1, 1, 6, 1, 0, 0, 0, 0, true, 128);}
if(Link->Dir == DIR_LEFT){Screen->DrawTile(2, Link->X, Link->Y-22, tile2+2, 1, 1, 6, 1, 0, 0, 0, 0, true, 128);}
if(Link->Dir == DIR_RIGHT){Screen->DrawTile(2, Link->X, Link->Y-22, tile2+3, 1, 1, 6, 1, 0, 0, 0, 0, true, 128);}
if(Link->Z <18){usecape = 0; Link->Item[invis] = false; switch2 = 0; timer2 = 0; timer3 = 0;}
if(timer2 == 60){usecape = 0; Link->Item[invis] = false; switch2 = 0; timer2 = 0; timer3 = 0;}
}
}
Right, so I modified the hover boots and the feather into the cape. The only problem with it though really is that when you move between two screens whilst flying, Link dissapears, because he's just a little drawtile function :P
Can anyone think of a better way of doing this? That doesn't involve FFCs?
This if clause is just part of the global script. I thought of making the LTM actually make Link into flying Link rather than invisible Link and drawtile, but it's taken quite a lot of effort to get invisible Link with my arrangement of Link tiles, and I don't really want to have to use up another tilesheet and a half of Link tiles.
Here we go:
http://www.youtube.com/watch?v=7ZRNcXvUi1E
I forgot to show it leaving the screen though. Ah well, I'm sure you can all imagine what happens.