This is the part where I load the images and how I tried showing it.
If I hide the bkg sprite and set menu_on=false the image shows.
Also the rest of the buttons show when I press the button.
void initial()
{
dbLoadImage ("Screens/life.png",loselife);
dbSprite(loselife,100,100,loselife);
dbHideSprite (loselife);
dbLoadImage ("Menu/bkg.png",bkg);//menu background image
dbSprite(bkg,0,0,bkg);
dbLoadImage("Generale//checker 1.png", ball_1);
dbSprite (ball_1,500,300,ball_1);// this is the image that's not showing,but if i display it and hide the bkg sprite it shows
}
void load_en()
{//buttons
dbLoadImage ("Menu/en/new_game.png",ng);
dbSprite (ng,100,100,ng);
dbLoadImage ("Menu/en/continue_game.png",gc);
dbSprite (gc,100,200,gc);
dbHideSprite(gc);
dbLoadImage ("Menu/en/loadlevel.png",ll);
dbSprite (ll,100,300,ll);
dbLoadImage ("Menu/en/settings.png",st);
dbSprite (st,100,400,st);
dbLoadImage ("Menu/en/exit.png",et);
dbSprite (et,100,500,et);
}
//this is how I show the image
if (mx>100 && mx<300 && my>400 && my<500 )//setting button
{
if(dbMouseClick()==1 && cooldown < thetime)
{
cooldown = thetime + 2000;
//dbHideSprite(bkg);
//menu_on=false;
if (lang==false)
{
lang=true;
dbShowSprite (ball_1);
dbShowSprite(ro);
dbShowSprite(en);
}
else
{
lang=false;
dbHideSprite(ro);
dbHideSprite(en);
dbHideSprite(ball_1);
}