How do I make certain spawned object to stop and not all

Get help using Construct 2

Post » Thu Jun 29, 2017 1:16 pm

You see, I have this line of event:

Code: Select all
Every random (0.5,5) secs spawn Customer 1 at the bla bla...


It working well but now I want the certain spawned customer to stop but not all of it. Just some of it to stop at the counter/cashier. If I make the Customer 1 to stop, it will stop all of it. I just want to stop certain of the spawned object, not all. Please help lulz :) :D :D
B
9
S
2
Posts: 15
Reputation: 662

Post » Thu Jun 29, 2017 1:42 pm

tryng use instance variables on some of them.
for example if you wish 3of them stopping, giving at this 3 one instance variable, set it to a value, when you want to stop change the value then call the command if instance variable is X then stop.
B
12
S
6
G
3
Posts: 279
Reputation: 3,239

Post » Fri Jun 30, 2017 1:34 am

@NN81 Wait... wait... that's pretty hard to understand... can you make a simple capx??? Or try to explain with bullet number like:

1. Bla bla

2. Bla bla...

Im so sorry...
B
9
S
2
Posts: 15
Reputation: 662

Post » Fri Jun 30, 2017 5:54 am

You can either pick the customer with the help of instance variables or simply make a trigger by the counter.

For example: customer on collision with counter --> stop


You can pick certain objects in a ton of ways. Read the manual about picking to learn more.

https://www.scirra.com/manual/131/common-conditions
B
55
S
24
G
13
Posts: 767
Reputation: 12,575


Return to How do I....?

Who is online

Users browsing this forum: dop2000, Yahoo [Bot] and 42 guests