I need the following to happen at the end of a Multiplayer Battle:
Winner wins:
1 star for completing the battle
1 star for being the last man standing
1 star if the battle is done in less than 200 seconds
Loser wins:
1 star for completing the battle
Winner and losers get their stars added and saved to their own instance Global Variable that is used to buy Hats and Skins.
When the Players get destroyed their own instances get deleted so I tried the following but it’s not working:
(For reference the “Star Menu” is what appears when the battle ends and starts the rest of the code)
Up. Wondering if the global variable for the stars that gets saved is only the one on the host side and probably it messes things up. Still trying to figure out this one. Or even if it is possible in Gdevelop.
I added a recording from the Gdevelop preview so you can have a better idea! I messed a bit with the code and I think it got worse.
What should happen:
Game mode is Last man standing:
The only player that remains without the “explosion” animation is the winner.
Winner get 2 stars + 1 star if he is the last one standing in less than 200 seconds
Loser gets 1 star
Each player should get those blue stars saved to their own global variable in which they can unlock skins for their character in game.
What is happening:
Everyone only gets 1 star
The stars aren’t being saved to the global variable.
Looks like the first star and blue bot giving a thumbs up is being duplicated maybe.