How do I constrain the dragdrop on X when moving on Y?

Get help using Construct 2

Post » Mon Feb 15, 2016 9:25 am

I saw there's an option for the dragdrop behavior on both axis or either horizontally or vertically but I want to dragdrop both horizontally AND vertically but not at the same time.
basically I want to constrain the dragdrop movement on the X axis when moving on the Y and viceversa.
B
14
S
6
Posts: 56
Reputation: 1,212

Post » Mon Feb 15, 2016 3:31 pm

On event drag self.x, mouse.y or clamp(self.x) mouse.y
B
29
S
13
G
10
Posts: 355
Reputation: 8,317

Post » Mon Feb 15, 2016 8:45 pm

Carbincopy wrote:On event drag self.x, mouse.y or clamp(self.x) mouse.y

sorry, I'm not sure I understand what the action to perform is.

event: ondragging object
action: ?
B
14
S
6
Posts: 56
Reputation: 1,212

Post » Mon Feb 15, 2016 11:30 pm

yes! that would work. Is drag, on drag, on mouse overlapping any event attached to the object.
B
29
S
13
G
10
Posts: 355
Reputation: 8,317


Return to How do I....?

Who is online

Users browsing this forum: Centra, Euduardo and 25 guests