Code:
panel* panel1; panel2; panel* grass
{grass = pan_create("grass.pcx;",2);grass.visible = on;
if(key_d == 1)
{grass.pos_x -=5 * time_step;
panel1.pos_x -=5 * time_step;
panel2.pos_x -=5 * time_step;}
// and so on.......
}
Or did you mean something else? Also why do you want to move the grass or is that the whole map as shown in the image above?