Gamestudio Links
Zorro Links
Newest Posts
Removing outliers from files
by AndrewAMD. 12/02/26 15:26
SGT_FW
by Aku_Aku. 11/30/26 08:19
Experiences with cTrader
by JeyKey II. 11/27/26 09:04
make a complaint
by EW_bytes. 11/26/26 23:00
FXCM => AVA Trade Plugin???
by Martin_HH. 11/25/26 21:59
No connection to MT4
by Martin_HH. 11/23/26 06:38
MinMax function on History t6 file
by LucasJoshua. 11/21/26 14:28
What are you working on?
by rayp. 11/20/26 18:10
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
3 registered members (AndrewAMD, Quad, Grant), 8,062 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EvanTJ, rht, MaliceTheMaker, Haitao_Ren, JimSimons
19250 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 | 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