Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Miori on Mon 27/08/2012 23:14:26

Title: Gui after saving
Post by: Miori on Mon 27/08/2012 23:14:26
Hello!

I have a little problem with my savegames. When the user hits the save button the save-gui disappears, waits 10 frames and then saves the game. After saving the game a gui appears that says the player, that the game has been saved. The problem is now, after loading the game the "game has been saved"-gui is still visible O.o I thought maybe a wait between saving and showing the gui would solve the problem, but it doesnt.

This is the script:

Code (AGS) Select

gSpeichern.Visible = false;
gSpeichernAbfra.Visible = false; // Savegame GUIs deactivated after pressing save button
lMeldung.Text = "Spielstand wurde gespeichert."; // Lable with text: Game has been saved
if(txtSpeichern.Text == ""){ // If Textbox where the Player can type a name of the savegame is empty, write "unnamed"

txtSpeichern.Text = "unbenannt";
}

Wait(10);

SaveGameSlot(SaveSlot, txtSpeichern.Text);  // Save to selected slot with the typed name
Wait(10);
gMeldung.Visible = true; // Show the GUI with the label "Game has been saved" inside it


gMeldung disappears if you click on it.

Does anybody know what I can do so the gMeldung GUI is not shown, after the game has been restored? O.o
Title: Re: Gui after saving
Post by: Khris on Mon 27/08/2012 23:41:03
Asked and answered in this board, not even 24 hours ago: http://www.adventuregamestudio.co.uk/forums/index.php?topic=46686.0
Title: Re: Gui after saving
Post by: Miori on Tue 28/08/2012 02:01:01
Yeah, saw it some minutes after I posted and could not find a button to delete my thread XD Sorry for that :undecided:
Title: Re: Gui after saving
Post by: Khris on Tue 28/08/2012 11:02:16
No problem, you can't delete threads though.