Hi @ all
i've got a problem with my code, i try to make a little Game, I made a Ground Pannel and 12 Pannels of the moving of the Player, i also made the code to put all together and to move the Player, but the problem is, if i walk right there should be the pannels for walking right too...
the Code:


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

BMAP* Background_Grass_tga = "Background_Grass.tga";
BMAP* Player_up1_tga = "Player_up1.tga";
BMAP* Player_up2_tga = "Player_up2.tga";
BMAP* Player_up3_tga = "Player_up3.tga";
BMAP* Player_down1_tga = "Player_down1.tga";
BMAP* Player_down2_tga = "Player_down2.tga";
BMAP* Player_down3_tga = "Player_down3.tga";
BMAP* Player_left1_tga = "Player_left1.tga";
BMAP* Player_left2_tga = "Player_left2.tga";
BMAP* Player_left3_tga = "Player_left3.tga";
BMAP* Player_right1_tga = "Player_right1.tga";
BMAP* Player_right2_tga = "Player_right2.tga";
BMAP* Player_right3_tga = "Player_right3.tga";



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

PANEL* Player_up1_pan =
{
pos_x = 30;
pos_y = 30;
layer = 2;
bmap = Player_up1_tga;
flags = OVERLAY ;
}

PANEL* Player_up2_pan =
{
pos_x = 30;
pos_y = 30;
layer = 2;
bmap = Player_up2_tga;
flags = OVERLAY ;
}

PANEL* Player_up3_pan =
{
pos_x = 30;
pos_y = 30;
layer = 2;
bmap = Player_up3_tga;
flags = OVERLAY ;
}

PANEL* Player_down1_pan =
{
pos_x = 30;
pos_y = 30;
layer = 2;
bmap = Player_down1_tga;
flags = OVERLAY | VISIBLE ;
}

PANEL* Player_down2_pan =
{
pos_x = 30;
pos_y = 30;
layer = 2;
bmap = Player_down2_tga;
flags = OVERLAY ;
}

PANEL* Player_down3_pan =
{
pos_x = 30;
pos_y = 30;
layer = 2;
bmap = Player_down3_tga;
flags = OVERLAY ;
}

PANEL* Player_left1_pan =
{
pos_x = 30;
pos_y = 30;
layer = 2;
bmap = Player_left1_tga;
flags = OVERLAY ;
}

PANEL* Player_left2_pan =
{
pos_x = 30;
pos_y = 30;
layer = 2;
bmap = Player_left2_tga;
flags = OVERLAY ;
}

PANEL* Player_left3_pan =
{
pos_x = 30;
pos_y = 30;
layer = 2;
bmap = Player_left3_tga;
flags = OVERLAY ;
}

PANEL* Player_right1_pan =
{
pos_x = 30;
pos_y = 30;
layer = 2;
bmap = Player_right1_tga;
flags = OVERLAY ;
}

PANEL* Player_right2_pan =
{
pos_x = 30;
pos_y = 30;
layer = 2;
bmap = Player_right2_tga;
flags = OVERLAY ;
}

PANEL* Player_right3_pan =
{
pos_x = 30;
pos_y = 30;
layer = 2;
bmap = Player_right3_tga;
flags = OVERLAY ;
}
///////////////////////////////////////////////////////////////

PANEL* Background_Grass_pan =
{
pos_x = 0;
pos_y = 0;
layer = 1;
bmap = Background_Grass_tga;
flags = VISIBLE;
}

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

function move()
{
while(1)
{
if(key_cud)
{
Player_up1_pan.pos_y +=0.2 ;
Player_up2_pan.pos_y +=0.2 ;
Player_up3_pan.pos_y +=0.2 ;
Player_down1_pan.pos_y +=0.2 ;
Player_down2_pan.pos_y +=0.2 ;
Player_down3_pan.pos_y +=0.2 ;
Player_left1_pan.pos_y +=0.2 ;
Player_left2_pan.pos_y +=0.2 ;
Player_left3_pan.pos_y +=0.2 ;
Player_right1_pan.pos_y +=0.2 ;
Player_right2_pan.pos_y +=0.2 ;
Player_right3_pan.pos_y +=0.2 ;


}

if(key_cuu)
{
Player_up1_pan.pos_y -=0.2 ;
Player_up2_pan.pos_y -=0.2 ;
Player_up3_pan.pos_y -=0.2 ;
Player_down1_pan.pos_y -=0.2 ;
Player_down2_pan.pos_y -=0.2 ;
Player_down3_pan.pos_y -=0.2 ;
Player_left1_pan.pos_y -=0.2 ;
Player_left2_pan.pos_y -=0.2 ;
Player_left3_pan.pos_y -=0.2 ;
Player_right1_pan.pos_y -=0.2 ;
Player_right2_pan.pos_y -=0.2 ;
Player_right3_pan.pos_y -=0.2 ;

}

if(key_cul)
{
Player_up1_pan.pos_x -=0.2 ;
Player_up2_pan.pos_x -=0.2 ;
Player_up3_pan.pos_x -=0.2 ;
Player_down1_pan.pos_x -=0.2 ;
Player_down2_pan.pos_x -=0.2 ;
Player_down3_pan.pos_x -=0.2 ;
Player_left1_pan.pos_x -=0.2 ;
Player_left2_pan.pos_x -=0.2 ;
Player_left3_pan.pos_x -=0.2 ;
Player_right1_pan.pos_x -=0.2 ;
Player_right2_pan.pos_x -=0.2 ;
Player_right3_pan.pos_x -=0.2 ;

}

if(key_cur)
{
Player_up1_pan.pos_x +=0.2 ;
Player_up2_pan.pos_x +=0.2 ;
Player_up3_pan.pos_x +=0.2 ;
Player_down1_pan.pos_x +=0.2 ;
Player_down2_pan.pos_x +=0.2 ;
Player_down3_pan.pos_x +=0.2 ;
Player_left1_pan.pos_x +=0.2 ;
Player_left2_pan.pos_x +=0.2 ;
Player_left3_pan.pos_x +=0.2 ;
Player_right1_pan.pos_x +=0.2 ;
Player_right2_pan.pos_x +=0.2 ;
Player_right3_pan.pos_x +=0.2 ;

}
wait (1);

}
}



function main()
{
video_mode = 7;
move();
}



Ok i tried to put:
"Player_up1_pan.VISIBLE = ON;"
in the part by the key, but it dont work...
Please help me.


Kokirikind