Distance between objects

Get help using Construct 2

Post » Fri Jan 27, 2012 11:45 am

Use the pin behavior to pin your bodyparts together.
If you need an example capx you have one in your c2 install\examples folder.

New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,999
Reputation: 57,793

Post » Fri Jan 27, 2012 11:45 am

ok...i have a hard time to understand what it shoud do hence I can not test on a touch device...and rewriting is something I don't like to do.

You could assign a physics behaviour to all body objects and then use the "create distance joint" command to bind the parts together....or try "pinning" the parts together...

is it correct, that "mdist" is supposed to be the distance between "touch" and "touched" bodypart?

ninja'd... Weishaupt2012-01-27 11:47:10
B
42
S
19
G
12
Posts: 723
Reputation: 13,911

Post » Fri Jan 27, 2012 11:51 am

Yes that is correct, its a bit of a bother being touch functions only!

Kyatric, can you unpin aswell so for example: I touch and move object to hit area and it pins to hit area but if I touch and move object again it unpins itself and can move freely again?
B
5
S
1
G
1
Posts: 111
Reputation: 1,122

Post » Fri Jan 27, 2012 12:18 pm

The create distance joint works perfectly!

Cheers lads!
B
5
S
1
G
1
Posts: 111
Reputation: 1,122

Post » Fri Jan 27, 2012 12:31 pm

[QUOTE=2Bdigital]
Cheers lads![/QUOTE]

Are you from down under?
B
42
S
19
G
12
Posts: 723
Reputation: 13,911

Post » Fri Jan 27, 2012 12:39 pm

I'm afraid not, London town!
B
5
S
1
G
1
Posts: 111
Reputation: 1,122

Post » Fri Jan 27, 2012 12:43 pm

[quote]I can not test on a touch device..[/quote]
btw. you can for testing the touch object choose the mouse input properties vidi2012-01-27 12:44:20
B
21
S
5
G
5
Posts: 163
Reputation: 5,028

Post » Fri Jan 27, 2012 12:46 pm

That is true!
B
5
S
1
G
1
Posts: 111
Reputation: 1,122

Post » Fri Jan 27, 2012 1:03 pm

If you just had the curiosity to open the action window or went to read in the manual you would have seen the unpin action.

Physics is another implementation, but will be far more CPU intensive (especially on mobile).
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,999
Reputation: 57,793

Post » Fri Jan 27, 2012 1:30 pm

I did see the pin/unpin action but when I tested it, it wasn't really suitable for what I was looking for never the less it works now! :)
B
5
S
1
G
1
Posts: 111
Reputation: 1,122

PreviousNext

Return to How do I....?

Who is online

Users browsing this forum: Skebab, Yahoo [Bot] and 13 guests