How do I destroy objects of the same type individually

Just started using Construct 2? Post your questions here

Post » Thu Oct 16, 2014 10:04 pm

Hello guys,
I am trying to destroy this yellow boxes, and so they will release a coin.

I was struggling with the fact that when I hit one all the other yellow boxes were destroyed. After a while, I figure out that using the UID of each object a could achieve my aim. I attached images to explain better.

However I would to know if there is a easy or better way to do what I want.

Thanks

boxdroppingcoin.png


gamescreenshot.jpg
You do not have the required permissions to view the files attached to this post.
B
5
S
1
Posts: 4
Reputation: 373

Post » Thu Oct 16, 2014 10:18 pm

Use instance variables. UID can be different each time you run the game.
B
24
S
9
G
4
Posts: 1,646
Reputation: 6,596

Post » Thu Oct 16, 2014 10:57 pm

Thanks, I used and worked fine.
B
5
S
1
Posts: 4
Reputation: 373


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 3 guests