Has pin behaviour changed?

Discussion and feedback on Construct 2

Post » Fri Apr 12, 2013 11:04 pm

I have 4 thrusters pinned to my player ship. Until recently they stayed pinned in the correct place even if I resized the ship, but now they don't. Is this intentional and how do I fix it? Do I need to unpin, reposition and repin them? Considering I use image point to initially pin them, will I have to change that?
B
25
S
5
G
3
Posts: 446
Reputation: 5,633

Post » Sat Apr 13, 2013 12:50 pm

The pin behavior has not changed for a long time. You probably changed something in your project.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,518

Post » Sat Apr 13, 2013 2:48 pm

Strange, because my game allows the screen to be resized and I never had problems with this before. When the ship was resized, the thrusters all automatically resized and repositioned themselves and I never even thought about it. Now they've stopped doing that, I've been looking through my programming for the part which controls this and realised it was just the pin behaviour doing it all for me.

I haven't actually changed my program at all lately because it's finished, so it must be something to do with the updates. I thought it might be something to do with the on-created thing, but neither my ship nor thrusters have an on-created event.

So am I right in saying that if an object is pinned to another object with angle and position, and the first object is scaled, the pinned objects should also scale?
B
25
S
5
G
3
Posts: 446
Reputation: 5,633

Post » Sat Apr 13, 2013 3:03 pm

Actually I've just realised that pin behaviour never did this. What's changed is, I wasn't resizing my ship at all but due to needing to reduce the clutter heavily, I started doing it. So I need to work out how to reposition and resize the thrusters manually.
B
25
S
5
G
3
Posts: 446
Reputation: 5,633


Return to Construct 2 General

Who is online

Users browsing this forum: blurymind, y2j and 8 guests