you can create an array for your 100 panels, and save the pointers in it and let them move in a while loop when you go with your mouse to the edge of your screen.

would be like this:


panel* ptrPanelTemp;
function fncMoveScreen(iX, iY)
{
while(iCounter < 100)
{
ptrPanelTemp = ptr_for_handle(yourArray[iCounter]);
ptrPanelTemp.pos_x += iX;
ptrPanelTemp.pos_y += iY;
iCounter += 1;
}
}

and call it like fncMoveScreen(5, -7);, depends on how you want to move the screen

this should work when you saved all the pointers in this arrays at the beginning of your game.


My Blog

"Tag und Nacht schrei ich mich heiser,
Wind weht alle Worte fort,
Tag und Nacht schrei ich mein Krähenwort!"

Subway To Sally - Krähenkönig