How do I stop creating random objects. (family)

Just started using Construct 2? Post your questions here

Post » Mon Feb 20, 2017 10:36 pm

Hi there!

Here is the situation, very simple:

I have created a family with bullets in random times and forms. If the bullet collids with a specific object I want to stop creating objects immediately. How do I do that? I don't see the option "stop creating object".

I tried destroy the family, but after a second it starts all over.

I hope you can help me.

Thanks!

Tuca
B
8
S
2
Posts: 25
Reputation: 650

Post » Tue Feb 21, 2017 9:40 am

You can toggle it off with a variable.
Create the bullets with condition (if variable =1)
If bullet collides with object set variable to 0. First event is now locked out.
B
47
S
18
G
84
Posts: 2,271
Reputation: 49,796

Post » Tue Feb 21, 2017 8:44 pm

Thank you my friend. It worked like a charm! :)
B
8
S
2
Posts: 25
Reputation: 650


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 2 guests