How do I Identify in witch object a object is pinned?

Get help using Construct 2

Post » Wed Sep 27, 2017 9:54 pm

There is some way to identify in witch object the pin object is pinned?
Like: ObjectA > Is pinned to ObjectB > Do this
ObjectA > Is pinned to ObjectC > Do that
B
28
S
14
G
6
Posts: 90
Reputation: 5,492

Post » Thu Sep 28, 2017 12:18 am

Fenix18 wrote:There is some way to identify in witch object the pin object is pinned?
Like: ObjectA > Is pinned to ObjectB > Do this
ObjectA > Is pinned to ObjectC > Do that



Hi @Fenix18 something like this?

Object A here = is represented by the Text Object

And ObjectC, ObjectB etc.... = is represented by the sprite object

Note: I apply the actions to both Objects but you just remove the object that you don't need to apply any actions
Example:
ObjectA > Is pinned to ObjectB > ObjectA Do this & ObjectB do that so you just delete one of them

https://www.dropbox.com/s/up58pnl34jrcv7p/PinnedTo2Who.capx?dl=0
B
47
S
29
G
91
Posts: 345
Reputation: 50,718

Post » Thu Sep 28, 2017 1:56 am

Oooh I see, you simply use Object.Pin.PinnedUID :) . Nice @tarek2, many thanks man! Be blessed.
B
28
S
14
G
6
Posts: 90
Reputation: 5,492

Post » Thu Sep 28, 2017 4:51 am

Fenix18 wrote:Oooh I see, you simply use Object.Pin.PinnedUID :) . Nice @tarek2, many thanks man! Be blessed.



No problem :D
B
47
S
29
G
91
Posts: 345
Reputation: 50,718


Return to How do I....?

Who is online

Users browsing this forum: flemmig, work3 and 19 guests