Outside of layout for more than 3 sec then destroy

Get help using Construct 2

Post » Tue Nov 18, 2014 9:31 am

Hi, i would need a help with this. If my my sprite is outside of layout more than 3 seconds, then destroy it. And if it is less than 3 seconds, keep alive
B
13
S
3
G
1
Posts: 429
Reputation: 1,852

Post » Tue Nov 18, 2014 10:08 am

perhaps you can add instance variable,, and then if "is outside layout" increment the value till 180 seconds, then destroy
"If you want to move a mountain tomorrow, you should start by lifting stones today."
B
65
S
15
G
3
Posts: 293
Reputation: 7,250

Post » Tue Nov 18, 2014 10:17 am

man, you're killing me... :D
You do not have the required permissions to view the files attached to this post.
B
67
S
24
G
7
Posts: 1,519
Reputation: 11,084

Post » Tue Nov 18, 2014 10:20 am

Thank you;
Here solution
Image
B
13
S
3
G
1
Posts: 429
Reputation: 1,852

Post » Tue Nov 18, 2014 10:21 am

sorry it was really easy, but somebody might find it useful , thanks Both of you
B
13
S
3
G
1
Posts: 429
Reputation: 1,852

Post » Tue Nov 18, 2014 10:25 am

you could do it like this
You do not have the required permissions to view the files attached to this post.
B
262
S
49
G
15
Posts: 2,009
Reputation: 42,233

Post » Tue Nov 18, 2014 10:28 am

Why this forum doesnt have Thanks button. Thank you to all 3 :-)
B
13
S
3
G
1
Posts: 429
Reputation: 1,852



Return to How do I....?

Who is online

Users browsing this forum: No registered users and 6 guests