Clicking on 1 obj destroys all other instances of that obj

Get help using Construct 2

Post » Fri Apr 29, 2016 9:12 pm

http://prnt.sc/aygw6i
I made this little system for cutting tree´s (didnt make the animations yet so it just destroys the tree).. Nevertheless, it should destroy only 1 tree trunk at a time, but it destroys all of them in the entire level. im rly tired and cant find a solution
Belief.
B
22
S
4
G
4
Posts: 161
Reputation: 3,284

Post » Fri Apr 29, 2016 10:52 pm

Since you want each trunk to have an personal JapTreeTrunk count, you need to use instance variables.

https://www.scirra.com/manual/73/instance-variables

Now you can pick the right tree based on the trees's personal count.

https://www.scirra.com/manual/124/system-conditions
(search "pick")
B
33
S
18
G
29
Posts: 2,493
Reputation: 21,450


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 15 guests