How do I check/verify object id? to UID?

0 favourites
  • 3 posts
From the Asset Store
This is a single chapter from the "Construct Starter Kit Collection". It is the Student Workbook for its Workshop.
  • Hi there,

    I stucked with my game prototype...

    I have a few the same objects (just cloned byt pressing "ctrl" + drag 'n' drop). I want to make something like "drag and drop' with these object but to the specific place/target object. For example - I drag one of these objects and move (while left button of mouse is down) to the target object/area and it should automatically match up to target (by X.Y of target). So i have condition if 'mouse left button is down, and its overlapping target place > set object position to target position. But if i make that, every objects of the layout will came to the target . So i want to make, that only this object, which is already dragged under the mouse/touch will stick/match up to the target place..

    How to make that? How to use uid for it - check uid of object when its choosen and dragged, and verfiy while the mouse button is released?

  • Can you give an exemple? (capx)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ok.. i think i solved my problem with that <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy" /> But there is anther problem/issue that i don't know how to solve it.. ... sp=sharing

    Here is my example. So if you can see, this is limited drag'n'drop system on axis. But this axis is already fake.. and it does'nt work correctly.. So i want to make more limitation because now you can drag "block" and drop on 'target' from another axis.. How to make that drag'n'drop will work only on the axis, which is overlapped by the block, not the other one axis.. ?

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