dragable obj. return to previous possition

Get help using Construct 2

Post » Wed Jul 18, 2012 11:05 am

Hello guys
How do i something like that: when o drag object and relase to wrong field (red) object returns to possition from i started dragging?

https://dl.dropbox.com/u/44710358/return.capx
B
110
S
27
G
47
Posts: 1,887
Reputation: 35,799

Post » Wed Jul 18, 2012 11:19 am

I would say, the easiest way to achieve this is by storing the x and y coordinates of the dragged object at the moment you start dragging. If the object is released on a bad position, just run an event to move it back to the stored coordinates.
B
44
S
10
G
8
Posts: 437
Reputation: 6,463

Post » Wed Jul 18, 2012 1:41 pm

I made an example of what Ubivis described a while back.

Maybe it can help you as well: DragDrop_CheckRange.capxNimtrix2012-07-18 13:41:35
B
27
S
8
G
8
Posts: 903
Reputation: 8,452


Return to How do I....?

Who is online

Users browsing this forum: dop2000 and 46 guests