Access an object by UID

0 favourites
  • 2 posts
From the Asset Store
This is a single chapter from the "Construct Starter Kit Collection". It is the Student Workbook for its Workshop.
  • 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

  • Try Construct 3

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

    Try 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)