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
94
S
19
G
34
Posts: 1,840
Reputation: 27,988

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
42
S
9
G
6
Posts: 437
Reputation: 5,626

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: 99Instances2Go, Skebab and 6 guests