How do I select an object by UID

0 favourites
  • 4 posts
From the Asset Store
112 High-Quality destruction sounds for videogames
  • Hi this is driving me insane..

    I a sprite type object, I used the editor to place five of them on screen, each insists on having a unique name (I assume these are the instances or the object). On game initiation I store the UID of each of these, but I cannot work out how to access them again via the UID.

    I have looked at both the system.pick by comparison, and system.pick nth instance but both require me choose the object, (and then lists the five unique names), if I already knew the object I would not have to pick it, I simply want to pick the object from all game objects that matches the UID.

    I have been unable to find example code of picking by UID, would very much appreciate seeing it.

    What am I missing?

    (when deleting my sprites form the layout, they are referred to as instances, but then each one (instance?) is listed when asked to 'pick an object" in the events sheet, this is confusing me)

    Found the problem, thanks to ROJOhounds example here: because I was right clicking on the layout and selecting insert new object, where as I should have dragged them from the projects panel to create instances under the same name.

    Thank you


  • Sounds like you've cloned the object, not copied it.

  • Try this demo

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yes!, blackhornet, thank you.

    Hmm, which leads me to a second problem, I want my game to be multiplayer, but I seem only to be able to sync objects, not instances of objects, attached is a slightly modified pong demo, whats odd is the two sprite instances are transmitted to the client, but the rest are lost.

    Seems kmsravindra 876478 is the same issue

    Lordshiva I don't think I explained my self well enough, but thank you for the swift reply.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)