How do I keep an object in a range?

Get help using Construct 2

Post » Mon Aug 31, 2015 3:37 am

I'm trying to do the following:

Spawn an special object, disabling the character's movement temporarily in the process.

Move it within a set distance from the player.

Pin said special object.

I know how to Pin, Spawn, disable movement etc, but for some reason the object keeps flying all over the place.

I tried using the distance formula (If there is less than X distance between player object and special object), pinning after X distance with the rope formula, and tried making it so that so long as its overlapping another object it can move. So far no luck. Is there any advice? Am i using the distance formula wrong?
B
10
S
2
Posts: 36
Reputation: 1,274

Post » Mon Aug 31, 2015 6:56 am

It's hard to say without a capx but, it sounds like the rope formula that's the problem. Can you post a capx?
Image
B
75
S
23
G
3
Posts: 673
Reputation: 9,283

Post » Mon Aug 31, 2015 9:57 pm

Here is my Capx link. If this doesnt work, please tell me
https://www.dropbox.com/sh/gqwk5r25amzkabz/AADQlHC70rrJGy_W737DFmzla?dl=0
B
10
S
2
Posts: 36
Reputation: 1,274

Post » Tue Sep 01, 2015 3:19 pm

B
10
S
2
Posts: 36
Reputation: 1,274

Post » Sat Apr 30, 2016 6:14 am

did you ever fix this issue ? im kinda in the same boat
B
52
S
24
G
6
Posts: 391
Reputation: 7,845


Return to How do I....?

Who is online

Users browsing this forum: Fenix18, tarek2 and 54 guests