Using the "Drag and Drop" behaviour with limits

Get help using Construct 2

Post » Fri Dec 07, 2012 3:56 pm

I need to create a sort of switch, using the "Drag and Drop" behaviour so my object can move only left or right and between position.x=20 and position.x=300.
How can I obtain this?
B
3
G
1
Posts: 7
Reputation: 689

Post » Fri Dec 07, 2012 5:37 pm

https://dl.dropbox.com/u/14087254/lineardragsprite.capx

Here you go. I did this for another thread that wanted the same thing. There are 3 samples for moving an object within a limited range.

Left is easy and acrurate enough I think for most slide switches
middle is finicky but in there just to show how to use the touch for it
Right uses the drag and drop and moves the object between two points

also the capx was written for Y angle, so make adjustements as needed.
B
87
S
18
G
9
Posts: 2,455
Reputation: 14,834

Post » Fri Dec 07, 2012 7:11 pm

@jayderyu:
Thank you very much!
B
3
G
1
Posts: 7
Reputation: 689

Post » Fri Mar 15, 2013 6:47 pm

is it possible to reupload this or anyone have a similar setup I can use?

thankse1two2013-03-15 19:07:14
B
3
Posts: 6
Reputation: 312

Post » Sat Mar 16, 2013 7:57 am

I'm trying to piece together a solution from the different threads on this, but I'm too much of a newbie to figure it out, I guess. Any help with this would be great.

thanks;

e1
B
3
Posts: 6
Reputation: 312

Post » Sat Mar 16, 2013 9:31 am

@e1two If you want your forum post to trigger an alert to someone, you need to put their name proceeded by the @ symbol like @Tedg
B
70
S
11
G
6
Posts: 18
Reputation: 9,152

Post » Sun Jul 07, 2013 10:56 pm

@jayderyu could you plese reupload the .capx file?
B
5
S
1
Posts: 3
Reputation: 533

Post » Mon Jul 08, 2013 12:36 am

@EuphoriaGames
C2 since the original thread has updated and should now include a feature of limiting the movement axis. It should be easier now :).
B
87
S
18
G
9
Posts: 2,455
Reputation: 14,834

Post » Mon Jul 08, 2013 12:56 pm

@jayderyu oh, i got it now, thanks for the info :)
B
5
S
1
Posts: 3
Reputation: 533

Post » Mon Jul 08, 2013 2:01 pm

well your on this subject anybody know how to make a 1 directional path for a pathfinder
B
39
S
10
G
7
Posts: 514
Reputation: 9,426

Next

Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 16 guests