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

Get help using Construct 2

Post » Wed Mar 15, 2017 8:27 pm

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?
B
4
Posts: 34
Reputation: 268

Post » Wed Mar 15, 2017 8:30 pm

Can you give an exemple? (capx)
B
4
Posts: 10
Reputation: 220

Post » Wed Mar 15, 2017 9:52 pm

Message: Avenged90x can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
Ok.. i think i solved my problem with that :D But there is anther problem/issue that i don't know how to solve it..
https://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.. ?
B
4
Posts: 34
Reputation: 268


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 6 guests