hi, im trying to get my character to move right when i press the D button, and left when i press the A . Here is my code, can anyone tell me where to go from here?


///////////////////////////////
#include <acknex.h>
#include <default.c>

///////////////////////////////

PANEL* boxie =
{
bmap = "boxie.bmp";
pos_x = 300;
pos_y = 300;
layer = 1;
flags = OVERLAY | SHOW;
}

PANEL* walk =
{
bmap = "boxiewalk.bmp";
pos_x = 300;
pos_y = 300;
layer = 1;
flags = OVERLAY;
}

PANEL* dead =
{
bmap = "boxiedead.bmp";
pos_x = 300;
pos_y = 300;
layer = 1;
flags = OVERLAY;
}

function animateboxie()
{
while(!key_d) wait(1);
while(1);
{
if(key_d){boxie.pos_x -=24*time_step}
}
}


Sorry, im new. I have a tendency to ask really simple questions, so please be patient.