Glitch?

ToasterGamesToasterGames Member, PRO Posts: 30

I'm making a game where you teleport the player around the screen, and it used to work fine. All of a sudden, everytime I tested the game it worked fine at first but if you go back to the menu and press play again the player just disappears from the screen and it's unplayable unless I go back to the editor and press play. But then the same thing happens. I've tried recoding the entire game screen but it still doesn't work. Is it a glitch?

Comments

  • LumpAppsLumpApps Member Posts: 2,881

    Check if you don't need to "reset" some game.attributes after playing it once. So they go back to when you first start the game. I can imagine they get different values during gameplay and when you restart without resetting those something goes wrong.

  • ToasterGamesToasterGames Member, PRO Posts: 30

    How do I reset attributes?

  • gamewizard99gamewizard99 Member, PRO Posts: 67

    You just change the attributes to what they were at the start of the game using the change attribute behaviour. For example, to 'reset' the score you would just change the score attribute to equal 0.

  • ToasterGamesToasterGames Member, PRO Posts: 30

    Although it didn't work with boolean, I switched the attribute to real and it works! Thanks!

  • LumpAppsLumpApps Member Posts: 2,881
    edited July 2014

    You are welcome ;)

Sign In or Register to comment.