Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 1,173 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
please help with small bug in game #277818
07/10/09 21:00
07/10/09 21:00
Joined: Jun 2009
Posts: 148
G
gamingfan101 Offline OP
Member
gamingfan101  Offline OP
Member
G

Joined: Jun 2009
Posts: 148
hi, my game starts in the main menu, when i click on the credits button, the credits come up as i want them to. But if i click back to main menu, then the credits and my main menu show. How can i stop that from happening? heres my function to go to the credits and then my function to go back.


function credits()
{
menupicture.flags = 0;
mainbutton1.flags = 0;
endubutton2.flags = 0;
creditbutton3.flags = 0;
exitbutton4.flags = 0;
headertxt.flags = 0;
maintxt.flags = 0;
endurancetxt.flags = 0;
creditstxt.flags = 0;
exittxt.flags = 0;
bground.flags = SHOW | OVERLAY;
back.flags = SHOW;
backbutt.flags = SHOW | OVERLAY;
wait(-3);
handle = media_play("credits.wav", NULL, 100);
wait(-1);
opening_txt.flags = SHOW;
wait(-4);
boxieopener_txt.flags = SHOW;
wait(-4);
opening_txt.flags = 0;
boxieopener_txt.flags = 0;
wait(-2);
screen_color.red = 135;
screen_color.green = 62;
screen_color.blue = 36;
owner_txt.flags = SHOW;
wait(-4);
owner_txt.flags = 0;
screen_color.red = 0;
screen_color.green = 62;
screen_color.blue = 36;
character_txt.flags = SHOW;
wait(-4);
character_txt.flags = 0;
screen_color.blue = 0;
screen_color.green = 88;
screen_color.red = 88;
level_txt.flags = SHOW;
wait(-4);
level_txt.flags = 0;
screen_color.red = 177;
screen_color.green = 239;
screen_color.blue = 135;
object_txt.flags = SHOW;
wait(-4);
object_txt.flags = 0;
screen_color.blue = 0;
screen_color.red = 0;
screen_color.green = 0;
instructions_txt.flags = SHOW;
}



function mainmenu()
{
bground.flags = 0;
back.flags = 0;
backbutt.flags = 0;
opening_txt.flags = 0;
boxieopener_txt.flags = 0;
opening_txt.flags = 0;
boxieopener_txt.flags = 0;
owner_txt.flags = 0;
owner_txt.flags = 0;
character_txt.flags = 0;
character_txt.flags = 0;
level_txt.flags = 0;
level_txt.flags = 0;
object_txt.flags = 0;
object_txt.flags = 0;
instructions_txt.flags = 0;
menupicture.flags = OVERLAY | SHOW;
mainbutton1.flags = OVERLAY | SHOW;
endubutton2.flags = OVERLAY | SHOW;
creditbutton3.flags = OVERLAY | SHOW;
exitbutton4.flags = OVERLAY | SHOW;
headertxt.flags = OVERLAY | SHOW;
maintxt.flags = OVERLAY | SHOW;
endurancetxt.flags = OVERLAY | SHOW;
creditstxt.flags = OVERLAY | SHOW;
exittxt.flags = OVERLAY | SHOW;
}

thanks for the help.


Sorry, im new. I have a tendency to ask really simple questions, so please be patient.
Re: please help with small bug in game [Re: gamingfan101] #277819
07/10/09 21:05
07/10/09 21:05
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline
Serious User
DJBMASTER  Offline
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
look in the manual for 'Set' and 'Reset'. These are macros that allow you to show/hide objects.


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1