Hi all, I am having tremendous trouble setting up a simple Load game/New Game interface and I am not sure if I am doing something wrong or Visionaire just bugs out. Please help me, as I am completely desperate at this point and don't know what else to do.
I have two menu screens in my game. Menu 1 appears when you start the game, Menu 2 is accessible during the game. I opted to use only Autosaves, because I do not want a preview picture of a saved game and I need only a single savegame (slot).
If you start the game for the first time, there is just the option to start a new game in Menu 1. If you however played it before and run it again, a Continue game button appears here. This button has the preset condition to false.
In the in-game Menu 2, there is an option to resume the game (no problem there) and New game (if you want to reset the game and start fresh).
I use two Autosaves, Autosave 1 for in-game progress (usually after the character picks up some item) and Autosave 2 to save the beginning of the very first playable scene, so it can be used as a beginning of a new game when some progress in the game has already been made.
The coding:
Menu1
At the beginning of the scene action:
If autosave 1 exists
Change condition "Continue button" to true
Else
Change condition "Continue button" to false
End if
Object Continue button
Left-click:
If autosave 1 exists
Load autosave 1
End if
Object New Game
If autosave 2 exists
Load autosave 2
Else
Switch to scene Level 1
End If
If autosave 1 exists
Delete autosave 1
End if
Menu 2 (in-game menu)
Object New Game
Load autosave 2
If autosave 1 exists
delete autosave 1
End if
In Level 1 scene is an Execute Autosave 2 action at the beginning of the scene.
How the game behaves:
When I start the game and enter Menu 1, the Continue game option is sometimes there, sometimes not, even if I just freshly built the game. If I decide to click the Continue Game button, nothing happens at all. I can only click the New game button. When in the first level and I already picked up some objects and enter in-game Menu 2, I cannot restart the game by clicking New Game, the button just doesn't do anything again.
What I don't understand is the different results I get every time I run the game even though nothing was changed.
Please help me, am I doing something wrong? (I'm fairly new to this programme) Or is this a bug? I would love to fix this or find out a way around it. At this point, the whole Visionaire work I've done is worthless since I cannot simply load or start a new game.