This is the code I use:
 Code:
PANEL* currentBrick;

void createBricks(int bricksNum){
	var i;
	for(i=0; i<bricksNum; i++){
		var newPos = i*40;
		PANEL* currentBrick = {
			pos_x = 0;
			pos_y = 0;
			bmap = "brick.tga";
		}
		set(currentBrick, VISIBLE);
	}
}


Is this even possible or do I need to create a seperate panel for each brick? apperantly I also cannot use a variable for the x position. It gives me the error: number syntax newPos

Last edited by bstudio; 04/05/08 20:19.

BASIC programmers never die, they GOSUB and don't RETURN.