can someone tell me how to go about drawing a custom link animation?
this is the code I currently have
const int PushUpTile = 0 // just a place holder not actully set const int PushUpTileFrames = 2; const int PushDownTile = 0 // just a place holder not actully set const int PushDownTileFrames = 2; const int PushLeftTile = 0 // just a place holder not actully set const int PushLeftTileFrames = 2; const int PushRightTile = 0 // just a place holder not actully set const int PushRightTileFrames = 2; global script link_push { void run() { int PushDir = Link_Pushing(); if (PushDir != -1) { if (PushDir == 0) { } if (PushDir == 1) { } if (PushDir == 2) { } if (PushDir == 3) { } } } } int Link_Pushing() { int CheckX = 0 int CheckY = 0 if ((Link->InputAxisUp) && (Link->Dir == 0)) { CheckY = Link->Y-8; } if ((Link->InputAxisDown) && (Link->Dir == 1)) { CheckY = Link->Y+8; } if ((Link->InputAxisLeft) && (Link->Dir == 2)) { CheckX = Link->X-8; } if ((Link->InputAxisRight) && (Link->Dir == 3)) { CheckX = Link->X+8; } if ((CheckX != 0) && (CheckY != 0)) { if (Screen->IsSolid(CheckX, CheckY)) { return Link->Dir; } } return -1; }