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
64
S
14
G
2
Posts: 292
Reputation: 6,678

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,518
Reputation: 11,072

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
256
S
39
G
15
Posts: 1,984
Reputation: 41,038

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: dop2000 and 8 guests