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

0 favourites
  • 3 posts
From the Asset Store
Hand-painted tiles, objects, animated objects, and background to build a colorful Mayan civilization environment.
  • 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?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Can you give an exemple? (capx)

  • 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..

    drive.google.com/file/d/0B7A6F5 ... 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)