How do I have better control of image points

Get help using Construct 2

Post » Thu Aug 27, 2015 10:12 am

Hello,

I want to implement the following:-

To smaller sprites are pinned to a larger sprite via image points (1 and 2). I want to manipulate the larger sprite, and the two smaller sprites are moved accordingly. Now, if I rotate the larger sprite for example, the imagepoints are rotated too. However, if I resize the larger sprites, the imagepoints stay where they are, they do not move then the larger sprite is resized. Please see the demo .capx for an example of this.

https://www.dropbox.com/s/tzujn2n3sdt5dkd/ImagepointsIssue.capx?dl=0

I want to be able to manipulate the larger sprite and the imagepoints be relocated along with the larger sprites manipulation.

Thanks.
B
12
S
2
Posts: 15
Reputation: 1,084

Post » Thu Aug 27, 2015 2:26 pm

@tekkendp

the image points do move as you change the size of the blue sprite. But the green sprites just stick to the original position where they were pinned - so you need to unpin them, move them to the new image point locations, and re-pin them when you change the size of the blue sprite.

and since the green sprites are the same object, you will have to pick the first instance, move it to imagepoint 1, then pick the second instance, move it to imagepoint 2.
B
97
S
34
G
20
Posts: 438
Reputation: 17,790

Post » Thu Aug 27, 2015 3:54 pm

Thanks AllanR. I've done it a little differently, but you hints pointed me in the right direction - Fixed!!!
B
12
S
2
Posts: 15
Reputation: 1,084


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 16 guests