Player not spawning correctly sometimes. Some help would be appreciated.
bladeolson
Member Posts: 295
On one of my apps, I am having an issue. After the main guy dies he spins around then is destroyed. The the player is taken to a new "try again" screen.
The problem is that sometimes when going back to the game screen, the player re-spawns and then seems to still be running under the "destroy" sequence, he spins around then disappears and the player cannot do anything?
Any ideas why this is happening?
Blade
The problem is that sometimes when going back to the game screen, the player re-spawns and then seems to still be running under the "destroy" sequence, he spins around then disappears and the player cannot do anything?
Any ideas why this is happening?
Blade
Comments
On your 'try again' screen, when the player presses the 'yes' actor use change behaviour to basically reset the variables you need changing (e.g. - player health =10, score =0, Timer =0, level =1 etc etc)
You'd also want to put these on your menu screen for 'start game' I guess so that if you go back to the menu, the variables are reset there too.
Hope that helps,
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io