How do i Cancel out this?

Get help using Construct 2

Post » Sun May 19, 2013 7:58 pm

I have this Event and i want to find a way so that after i guess 20seconds it cancels out and its just turned off is there a way to do this?


Event                   Action
System-ever .08 seconds System-Create object "A" on Layer 0 (-10,400)

Thats my problem i just want a way to cancel it out is there a way?

Thanks
B
9
S
1
G
2
Posts: 23
Reputation: 1,603

Post » Sun May 19, 2013 8:08 pm

@toko,

You could create a variable 'counter' with a value of 20, and include this as a condition on your event;

e.g. System every .08 seconds & counter > 0.

Then you'd just need to subtract 1 from counter every second, and when it gets to zero, your event would no longer fire!

Hope that helps
B
32
S
6
G
7
Posts: 489
Reputation: 8,217

Post » Sun May 19, 2013 8:08 pm

@toko

Hi, why not add a counter, and set a condition based n the counter.

Event                   Action
System-ever .08 seconds System-Create object "A" on Layer 0 (-10,400)
Condition               counter=counter + 1
counter<25
B
45
S
15
G
9
Posts: 1,096
Reputation: 11,038

Post » Sun May 19, 2013 8:10 pm

@spongehammer, snap!

Nice answer by the way, sounds like a very clever solution!
B
32
S
6
G
7
Posts: 489
Reputation: 8,217

Post » Sun May 19, 2013 8:11 pm

You guys are awesome thanks a bunch!
B
9
S
1
G
2
Posts: 23
Reputation: 1,603

Post » Sun May 19, 2013 11:11 pm

@Blacksmith

hehe yeah yours was good too
B
45
S
15
G
9
Posts: 1,096
Reputation: 11,038


Return to How do I....?

Who is online

Users browsing this forum: ibrahimtolaj, Unconnected and 16 guests