How do I create a Drag & Drop that doesn't drag forever!

Get help using Construct 2

Post » Wed Apr 15, 2015 2:21 am

Hello everyone!

I am currently creating a Joy Stick for a game, and I want my Joystick to be closed off in an invisible box so the user can drag it to a certain point only.
So for example
Image
Here I wan't the joy stick to be dragged inside that box*



I tried using the Solid Behaviour but that didn't work for me!
So now users can drag the Joystick all over the screen
Image



& here is my code
Image

Thanks everyone!

EDIT:

Was able to find a solution!
Thanks.
Last edited by zaabi1995 on Wed Apr 15, 2015 4:20 am, edited 2 times in total.
B
4
Posts: 2
Reputation: 206

Post » Wed Apr 15, 2015 4:01 am

you can invert the event. or use enabled. and disabled
B
55
S
18
G
10
Posts: 209
Reputation: 8,546


Return to How do I....?

Who is online

Users browsing this forum: Artcadev, Yahoo [Bot] and 30 guests