hi, im trying to put a button on my background image, but nothing is there. heres the code im using and advice would be greatly appreciated!


////////////////////////////////////////////////////////////////////
#include <acknex.h>
#include <default.c>
////////////////////////////////////////////////////////////////////

BMAP* firebackground = "awesome-fire-dragon-ablaze.jpg"; // dragon fire background with button on it

PANEL* first_pan = // my first panel
{
pos_x = -40;
pos_y = 0;
layer = 1;
bmap = firebackground;
button(-270, -100, "stopclicked.jpg", "stopnormal.jpg", "stopnormal.jpg", quit_program, NULL, NULL);
flags = OVERLAY | VISIBLE;
}
BMAP* pngRobot = "LDDScreenShot1.png"; // robot in foreground

PANEL* second_panel =
{
pos_x = -270;
pos_y = -100;
layer = 2;
bmap = pngRobot;
flags = OVERLAY | VISIBLE;
}

/////////////////////////////////////////////////////////////////////

function main ()
{
video_mode = 7;
screen_color.red = 100;
}

function quit_program()
{
while (key_any) {wait (1);}
sys_exit(NULL);
}

Last edited by gamingfan101; 06/10/09 02:15.

Sorry, im new. I have a tendency to ask really simple questions, so please be patient.