Oh, my bad. Didn't know about this:

Quote:
Within the struct initialization, any numbers, variables, character strings, or pointers to other structs can be used, but internal engine variables (such as "camera"), and #defines (such as a previously defined "NUMBER_OF_ARRAY_ELEMENTS") can not be used.


I tried using variables instead of defines, but that doesn't work either frown (However, as I understand the manual, it should... I tested using variables in custem defined structs and there it works...)

If you are only using looptxt to show the panel, you could emit the position initialisation in the panel definition:

Code:
#define LOOPTXT_PAN_ORIGINAL_X 1054
#define LOOPTXT_PAN_ORIGINAL_Y 350
PANEL* looptxt_pan =

{

	bmap = "nextstage.tga";
	layer = 50;	
}
function looptxt()
{
	wait(3);
	looptxt_pan->pos_x = LOOPTXT_PAN_ORIGINAL_X ;
	looptxt_pan->pos_y = LOOPTXT_PAN_ORIGINAL_Y ;
	set(looptxt_pan,SHOW | OVERLAY);
	while(1)
	{
		looptxt_pan->pos_x = cycle(looptxt_pan->pos_x -30 * time_step,-bmap_width(looptxt_pan->bmap),screen_size.x);
		wait(1);
	}
}



Ohterwise, you have to put the numbers manually in the struct as you did at the start.