How do I make this pinned object work?

Get help using Construct 2

Post » Thu Apr 03, 2014 12:41 am

I pinned an object to the player on another layer, and I've tried "set position to another object" and the Pin behavior this time, but no dice. The object doesn't move with the player. Player has 8-Direction and ScrollTo behaviors.

https://www.dropbox.com/s/k876b17hg3g5xhg/teest.capx

I'm using r165, btw.
B
11
S
4
G
3
Posts: 210
Reputation: 5,318

Post » Thu Apr 03, 2014 12:47 am

You need to set the position first, then Pin.
ImageImageImage
B
71
S
21
G
230
Posts: 3,688
Reputation: 128,852

Post » Thu Apr 03, 2014 2:22 am

blackhornet wrote:You need to set the position first, then Pin.


I did this and the issue persists. The image just sits at the bottom of the screen, then shoots up the top of the screen when I move up.
B
11
S
4
G
3
Posts: 210
Reputation: 5,318

Post » Thu Apr 03, 2014 2:29 am

I'm not seeing that. The red square pins to the black sprite with the hole in the middle and they move around together. It might help if you add a tiled background so you can see the movement. It's hard to see anything useful with a white background.
ImageImageImage
B
71
S
21
G
230
Posts: 3,688
Reputation: 128,852

Post » Thu Apr 03, 2014 2:43 am

blackhornet wrote:I'm not seeing that. The red square pins to the black sprite with the hole in the middle and they move around together. It might help if you add a tiled background so you can see the movement. It's hard to see anything useful with a white background.


Sorry about that, here's a new capx with new sprites: https://www.dropbox.com/s/kaf6w0go87zdd69/test2.capx
B
11
S
4
G
3
Posts: 210
Reputation: 5,318

Post » Thu Apr 03, 2014 3:03 am

You've got Parallax on Layer 3 set to 0,0. Put it back to 100,100
ImageImageImage
B
71
S
21
G
230
Posts: 3,688
Reputation: 128,852

Post » Thu Apr 03, 2014 3:20 am

blackhornet wrote:You've got Parallax on Layer 3 set to 0,0. Put it back to 100,100


Thanks, it's working now :)
B
11
S
4
G
3
Posts: 210
Reputation: 5,318


Return to How do I....?

Who is online

Users browsing this forum: Bootfit, mihirolover, Prominent, tarek2 and 11 guests