hello
I am working on a lives system for my project; I have set up a variable in the game mode called lives and bound it to an on screen widget, on entering a new level, it will run a branch to check if number of lives equals 3, if not, it sets it back to 3. When the player has ‘failed’ the level it should subtract 1 from ‘lives’, theres a widget that will display for that purpose in which theres a button to ‘replay’ that level. The blueprints behind it is that it will reset the level. Now that works just fine but the problem is that after the resetting, ‘lives’ goes back to 3 instead of subtracting 1 to give 2. Is there a way to reset a level without affecting variables such as lives or coins.
N.B: I tried storing the lives in game instance instead of game mode but nothing displayed when i did a text binding for it to show on screen.
Help please…
You’re right, game instance is where to put it, but you do need to access it correctly…
yep. thats the problem. i just cant get it to show on a text binding
Did you set the project to use your game instance? Project settings → game instance → my game instance ( or whatever it’s called )?