Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

*HELP* Player keeps moving after Restart!

Discussion in '2D' started by ArtC91, Jul 12, 2021.

  1. ArtC91

    ArtC91

    Joined:
    Jun 2, 2021
    Posts:
    6
    Hello Unity Community,

    Has anyone ever had issues with the player moving to a new position after restarting?

    I created an endless runner game with three positions; top, mid, bottom. Whenever my player dies and I restart the player keeps jumping to the top position for some reason. If anyone has any pointers that'll be great. BTW I'm doing this on mobile.

    Thanks
     
  2. Unrighteouss

    Unrighteouss

    Joined:
    Apr 24, 2018
    Posts:
    599
    Hey,

    It has to be something in your code. You could try building the game to see if it's an editor issue, but my guess is there's a bool or something similar that isn't getting reset.