How do I Destroy only the top instance that meets condition

Get help using Construct 2

Post » Mon Dec 08, 2014 3:38 am

I'm trying to get my game to destroy buildings and display different statuses based on the 'health' of the buildings, and to destroy the building when the 'health' hits 0. That much I have gotten working.

The part I need help with is, when the buildings are 0, but are not the top most building block in the stack, to not destroy the building block. So only the building that is at the very top that has a value of 0 is destroyed.

File attached : https://dl.dropboxusercontent.com/u/108 ... erlap.capx
You do not have the required permissions to view the files attached to this post.
Using R243 for all examples
B
69
S
20
G
6
Posts: 379
Reputation: 9,699

Post » Tue Dec 09, 2014 12:15 am

Re-work your events like this to pick all the top blocks with health 0.
You do not have the required permissions to view the files attached to this post.
B
92
S
32
G
109
Posts: 5,291
Reputation: 70,993

Post » Fri Dec 19, 2014 9:59 am

I only just saw this, the website doesn't always show me new posts for some reason.

Will try this tomorrow morning, thank you :D
Using R243 for all examples
B
69
S
20
G
6
Posts: 379
Reputation: 9,699


Return to How do I....?

Who is online

Users browsing this forum: richcoz81 and 51 guests