0 Favourites

Access an object by UID

  • 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

  • Construct 3

    Buy Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Buy Now Construct 3 users don't see these ads
  • It's very simple <img src="smileys/smiley2.gif" border="0" align="middle" />

    <img src="http://world-inventors.com/screen2.png" border="0" />

    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.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic
167 14,484
DMT2005's avatar
DMT2005
Unread hot topic
123 14,867
Zebbi's avatar
Zebbi
Unread hot topic
49 3,136
Danwood's avatar
Danwood