that's my question friends.
i am working in a fappy plane with collestibles stars but when my plane fall down and stop the stars still the generation.
So when the plane hits the object toggle a variable to signal that it is dead. When generating the collectables, check that the plane is not dead before spawning.
Are you saying? than i should have a other menu layer than when plane dead the player go it for stoping the generation.
Hi,
No he means that you need to add a global variable "GameOver" for example and set it to 1 when the plane is dead.
Then you add a condition on your star generation to avoid generating them when GameOver = 1
Develop games in your browser. Powerful, performant & highly capable.
Hi, No he means that you need to add a global variable "GameOver" for example and set it to 1 when the plane is dead. Then you add a condition on your star generation to avoid generating them when GameOver = 1
thanks you really help me