So still working on my quest and I'm working on desert winds atm. The winds DO push Link and he stops getting pushed if there's a solid tile in his velocity. The problem is though, although he is being pushed, the layers never show up. Here's two scripts working together:
// West winds
void west()
{
Screen->DrawLayer(6,5,84,6,160,160,0,0);
while (true)
{
if (Screen->isSolid(Link->X-8,Link->Y+8) || (Screen->isSolid(Link->X-8,Link->Y-8)))
{
Waitframe();
Link->X -= 0;
}
else
{
Waitframes(pushDist);
Link->X -= pushDist;
}
}
}
// Calls one of the directional winds randomly every 10 seconds
const int rotInterval = 10; //'x' seconds
ffc script RotateDWind
{
void run()
{
while (true)
{
int dir = Rand(0,3);
if (dir == 0) { west(); }
else if (dir == 1) { east(); }
else if (dir == 2) { north(); }
else { south(); }
Waitframes(30*rotInterval);
}
}
}
The issue is that the layer isn't showing up. Did I mess up the arguements? It's supposed to show the 6th layer on screen 84 of map 5.

