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
11
S
3
G
1
Posts: 419
Reputation: 1,782

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
63
S
14
G
2
Posts: 291
Reputation: 6,641

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.
Image
B
65
S
23
G
7
Posts: 1,504
Reputation: 10,894

Post » Tue Nov 18, 2014 10:20 am

Thank you;
Here solution
Image
B
11
S
3
G
1
Posts: 419
Reputation: 1,782

Post » Tue Nov 18, 2014 10:21 am

sorry it was really easy, but somebody might find it useful , thanks Both of you
B
11
S
3
G
1
Posts: 419
Reputation: 1,782

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
249
S
39
G
15
Posts: 1,953
Reputation: 40,598

Post » Tue Nov 18, 2014 10:28 am

Why this forum doesnt have Thanks button. Thank you to all 3 :-)
B
11
S
3
G
1
Posts: 419
Reputation: 1,782



Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, David181, fens and 13 guests