"Unpick" an instance of an object

Get help using Construct 2

Post » Wed May 29, 2013 9:43 am

Hi,

like the title says I'm trying to "unpick" the instance of an object.
For example:
I have an "on-Click" event on an object. C2 picks now the clicked instance of the object. But within the Event I want to do actions with other instances from the same object.

For Each is working as well as calling a function to solve this problem. But I'm looking for a better way to solve this problem.
B
5
Posts: 13
Reputation: 849

Post » Wed May 29, 2013 10:41 am

You could use the function object with the selected objects variable value as a parameter.
Then on the function do a sub event comparing the variable is not equal to the function param.
Image ImageImage
B
166
S
49
G
154
Posts: 8,104
Reputation: 100,229

Post » Wed May 29, 2013 12:56 pm

I usually do it like this:

Pick all
Pick objects you want

If I need some values from the original instance, I usually save them into local variable or use a function.
B
24
S
9
G
7
Posts: 756
Reputation: 7,292


Return to How do I....?

Who is online

Users browsing this forum: AkbarAsgharMG, Baidu [Spider], cjbruce and 10 guests