I need to do collision detection between 20 different panels that were created with pan_create so instead of checking each one individually I was going to make a function and use a panel parameter but it doesnt seem to work. It would look something like this.

Code:
function collision_shield(check_pan)
{
	panel* collision = check_pan;
	if((collision.pos_y > 590) && (collision.pos_y < 610))// not the entire check
	{
		return(true);
	}
	return(false);
}


This doesn't work for multiple reasons and I cant seem to get it to work, please help. When i run this i get an error of empty pointer in function.

Last edited by halfpint; 02/24/09 04:51.