How could I make this function reset. So the picture get's
placed at it's original start point ?

Code:
PANEL* looptxt_pan =

{

	bmap = "nextstage.tga";
	pos_x = 1054;
	pos_y = 350;
	layer = 50;	
}
function looptxt()
{

	wait(3);
	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);
	}
}



It works for now but i need to be able to reset this complete
function so it can be used all over when needed.


Thx for your time laugh


Find all my tutorials & Workshops at : www.rp-interactive.nl

Creativity starts in the brain