Chain-positioning objects to each others' origin point

Discussion and feedback on Construct 2

Post » Sun Mar 09, 2014 5:50 pm

Hi,

If you have 4 sprites; obj1, obj2, obj3 and main, and you position obj3 to obj2, and obj2 to obj1, and obj1 to main.

How come obj3's position doesn't change when obj2's origin point OR image size is changed?

For example, if obj2 and obj3 are 32x32px big, and their origin points are both 0x0, then changing obj2's origin point to 0x1 SHOULD move obj3 down by one pixel, but it doesn't.

Why is this?
B
22
S
5
Posts: 107
Reputation: 2,354

Post » Sun Mar 09, 2014 8:22 pm

Hmm well your example should be correct, obj3 should move 1 pixel down, and it is indeedly correct when I've recreated your example in a capx:
https://dl.dropboxusercontent.com/u/776 ... /objz.capx
Running this capx, you'll see the blue square (Obj3) with a 1pixel green line above it (Obj2), which means "If Obj3 is attached to Obj2, and you set the origin point of Obj2 to 0x1, then Obj3 gets moved down." Obj1 is directly behind Obj2 so you can't see Obj1 :P
B
51
S
20
G
10
Posts: 571
Reputation: 9,819


Return to Construct 2 General

Who is online

Users browsing this forum: fearfulelephants, Refeuh and 8 guests