okay so i'm using this code:
BMAP* player_bmap = "playertest.bmp";
PANEL* player_blue =
{
pos_x = 100;
pos_y = 100;
bmap = player_bmap;
flags = OVERLAY | SHOW;
}
function main()
{
video_mode = 7;
screen_color.red = 150;
while(1)
{
while(!key_w)
wait(1);
{
player_blue.pos_y -= 0.3;
wait(1);
}
}
while(1)
{
while(!key_s)
wait(1);
{
player_blue.pos_y += 0.3;
wait(1);
}
}
}
and the first while loop works, it makes the player panel move up, but the second loop doesn't make the player move down, any idea why?