I am making a game and essentially, you can click a button (the scribbles) on the map and it takes you into the level, but after the level is cleared, I want the button to become unclickable on the map and change to a different image. I am trying to use a blueprint in the Game Instance so that it remembers that the level was cleared as you continue the game. Any ideas on how to wire it up?
Use set is enabled(false) on the button or bind it to a bool state ![]()
1 Like
What Kenslogana said. A Boolean would be better, since you want the game to know which levels have been cleared. Make a Boolean for each level on the map.
If you want to save one last level, consider using an integer variable as well to count how many levels have been cleared. Then, use that integer to keep that final level locked until the other levels are finished. Declare and use that variable in your GameBase blueprint since that can be called from any other BP and have each level map call that integer and add 1 when the level is cleared. Then have the widget check the integer to determine whether or not it should enable the button for the last level.


