I think this is kind of old, but oh well.. maybe he/she still needs help. Why don't you try this:

Code:
function main()
{
level_load("questimage.wmb");
camera.ambient = 100;
mouse_mode = 2;
enable_mouse = 1;

}



PANEL* motherbutton =
{
pos_x = 55;
pos_y = 55;
FLAGS = OVERLAY | VISIBLE;
button(0,0,motherboardpush,motherboardnormal,motherboardnormal,openmother,NULL,NULL);
}


I'm assuming this is only PART of your code, right? If this is all of it, you don't have a function openmother() defined, which would obviously be a problem. I've never seen "flags = d3d" or "flags = refresh" used on panels before... ever... I suggest you download the Lite-C workshops and read through the manual as you work. It will help a LOT. laugh

EDIT: Wait, are you using C-Script or Lite-C? I re-wrote the code for Lite-C. If you're just beginning programming, you should just go ahead and learn Lite-C, instead of C-script.

Last edited by Jaeger; 06/06/09 08:24.