Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local multiplayer RESET button #179

Open
raniceyue opened this issue Sep 21, 2021 · 0 comments
Open

Local multiplayer RESET button #179

raniceyue opened this issue Sep 21, 2021 · 0 comments
Assignees
Labels

Comments

@raniceyue
Copy link
Contributor

We have decided in #176 and on telegram that we want the Reset button for the Esc menu for local multiplayer to have the following behaviour

Upon pressing the reset button, the game should reset the game only, and players shouldn't have to redo the player controller detection stage

However, there is one issue: The controller detection is done within the same level blueprint, and the controller information is not being stored in the PersistentGameInstance. Because of this, upon reloading the level, all the player information will be lost.

There are 2 solutions to this

  1. We make it such that we are able to reset the following
    1. Each player's stats and position
    2. All the environment objects e.g., destroyed crates all must be reset to the original map
    3. The timer has to be reset
  2. Implement controller detection in a separate map altogther. However, as previously tested by @beatricetay , storing the player controller information in the PersistentGameInstance will reset all the values for some reason.

Solution 2 is an easier fix, but we have to figure out why the controlelr information gets reset after putting it in the PersistentGameInstance 😢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants