Page 1 of 1

Chain-positioning objects to each others' origin point

PostPosted: Sun Mar 09, 2014 5:50 pm
by bolosaur
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?

Re: Chain-positioning objects to each others' origin point

PostPosted: Sun Mar 09, 2014 8:22 pm
by Jase00
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