Destroy object by UUID ?

Get help using Construct 2

Post » Thu May 23, 2013 6:13 pm

So I just created 100 items via left click... and I added the UUID via pushing into an array when it is created. How do I select an object by UUID and then destroy it?
B
6
Posts: 35
Reputation: 370

Post » Thu May 23, 2013 6:26 pm

This is how I expected it to work...

B
6
Posts: 35
Reputation: 370

Post » Thu May 23, 2013 6:33 pm

You'd need to index the array somehow as well. Right now you are picking the item in front of the array and constantly destroying it. In this example, you could add 'pop array.front' action and it should work. Also, your pick event is wrong. Use condition 'pick by uid' that can be found under sprite conditions, not system conditions.vee412013-05-23 18:34:36
B
24
S
8
G
7
Posts: 756
Reputation: 7,192

Post » Thu May 23, 2013 6:42 pm

I think I love Construct 2....

@vee41 Thanks, I got it working! I did not think to look for pick by UUID under the sprite...

B
6
Posts: 35
Reputation: 370


Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go, jeffige, LeFuji, plinkie, Radulepy and 1 guest