tdelta / SynergyQuest

SynergyQuest is a 2D top-down cooperative multiplayer action-adventure video game using web-based smartphone controllers.
Other
13 stars 1 forks source link

Multiple ghosts spawn on player death (rare) #6

Closed ahbnr closed 3 years ago

ahbnr commented 4 years ago

(reported by @didge-rydu )

Steps to reproduce

  1. ???
  2. Die
  3. ???
  4. Observe multiple ghosts spawning instead of one. This does only happen in rare cases and it is not clear what is causing this issue. It has been reported to occur when reloading the controller website while dying / after death.
maruker commented 4 years ago

Detailed Steps to Reproduce

  1. Get the player into a dangerous situation
  2. Disconnect the controller (close the website)
  3. Sustain damage
    • Exception occurs halfway through PlayerController.ChangeHealth, so the health HUD is not displayed and the check for player death is not executed
  4. Reconnect the controller
  5. Enjoy a ghost for each time PlayerController.ChangeHealth was called
    • I don't know why but Unity seems to execute the rest of the function now