Access an object by UID

Get help using Construct 2

Post » Fri May 17, 2013 3:23 am

I'm sorry, again this is something I searched for but was unable to find the correct answer I was looking for. I'm looking for a way to access and object by it's UID.

For example, I might create a function which sets the width of an object so for that I would pass in the UID of the object and then set the width, so something like Object( UID ). width = 300 or along those lines. Does anyone know if this is something which is possible to do?

Thanks in advance for any help anyone is able to offer on this matter!

Steve
B
4
Posts: 10
Reputation: 220

Post » Fri May 17, 2013 6:10 am

It's very simple



This is a pointless example, because it's the same as:
On Touch Object : MyObject => MyObject : Set Width

But it should give you a point of view how to work with UIDs and function parameters.Prox2013-05-17 06:28:14
B
7
S
1
G
1
Posts: 32
Reputation: 1,016


Return to How do I....?

Who is online

Users browsing this forum: Kagubro and 26 guests