Glitch?
ToasterGames
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
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.
Lump Apps and My Assets
How do I reset attributes?
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.
Although it didn't work with boolean, I switched the attribute to real and it works! Thanks!
You are welcome
Lump Apps and My Assets