0
Answered

How can i activate the button with condition

snorbii 2 months ago in Game Creator updated by Marti (Lead Developer) 1 month ago 4

Hello!

Help me pls! 🙈

My main menu scene there are 2 buttons.

Level 1 button = action: load scene level 1

Level 2 button = action: load saved game profil 1

When player click level 1 button , then the level 1 button execute the load level action. In the end of the level 1 scene, there is a trigger what load level 2 scene. At the begining of the level 2 scene there is an on start triger what save the game data in the profil 1.



So here is my question, how can i activate the level 2 button with condition, if there is a saved data in the profil 1. And inactivate if there is no saved data in the profil 1.

Unity version:
Game Creator version:

Answer

+1
Answer

This condition was added to the GC core at 1.1.9

It is under Conditions/Custom

There is a Condition somewhere that is "ifhassavedgame". I cannot remember where it is, but I will look. It may be in one of the additional modules.

However, you could also set a variable bool to true at the beginning of level 2 when you save the game. Then check the variable as to which button to activate.

+1
Answer

This condition was added to the GC core at 1.1.9

It is under Conditions/Custom

you saved my time! thank you:)