How do I stop ramdom genaration on collision with object

Get help using Construct 2

Post » Mon Mar 09, 2015 2:55 pm

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.
B
3
Posts: 6
Reputation: 187

Post » Mon Mar 09, 2015 4:05 pm

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.
Nothing goes unanswered!
B
24
S
5
G
1
Posts: 434
Reputation: 3,446

Post » Fri Mar 13, 2015 3:38 pm

Are you saying? than i should have a other menu layer than when plane dead the player go it for stoping the generation.
B
3
Posts: 6
Reputation: 187

Post » Fri Mar 13, 2015 3:59 pm

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
B
14
S
4
G
2
Posts: 190
Reputation: 3,938

Post » Fri Mar 13, 2015 5:17 pm

beufreecasse wrote: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 ;) ;)
B
3
Posts: 6
Reputation: 187


Return to How do I....?

Who is online

Users browsing this forum: blackhornet, MathNook and 46 guests