Hi guys,
I’m new at blender, and i am in a real trouble here. how to create a continue button that only shows up if there is already a game that had been played and loads the current scene the player is/was at…
I will be waiting for your reply… Thank you…
p.s. : my college life depends on it… huhuhu
is it BGE ? maybe post there also …
i think an easy way to do this is to create the continue button on another scene and you’ll have to use the ‘Overlay Scene’ option in Scene actuator.
this will show up the continue button.
For the continue button you’ll have to use a Mouse Sensor with ‘Left Click’ option selected. for the actuator you’ll have to use a ‘Remove Scene’ option to remove the overlay scene and use another Scene actuator set to ‘Restart Scene’.
To have more control over which scene to be Restarted, it’s better to use python script.
I do not think your problem is to create a continue button. That is very easy.
Your problem is to discover the logic behind ;).
If you think about, you should see you need a possibility to load a previously saved game state.
So you need Save and Load functions.
If you have that it shouldn’t be no problem to execute this function, by mouse click, key press, game start or whatever.
Luckily you can find that in my Signature. Look for SaveLoader. A tutorial how to use it is there as well. A concrete implementation of a Load (incl. switching to the right scene) can be found in the provided demo file.
I hope it helps
Monster