Not aligning properly.
I have one actor, the big grey one which is supposed to be constrained to the x position of the orange one. Only problem is, it isn't. It is allways slightly to the left of the orange one. I have tried doing the x coord of orange+10 but it wont change it? I have spent ages trying to fix this today and it was working perfectly yesterday...
Anyone that can help thanks
Anyone that can help thanks


Comments
As much as I can see from the screen without getting a ruler to it, your orange actor isn't centred on the screen on the X pos (there's more to the left than the right of the centre point); get that exactly centred and your grey box will follow!
----------------------------------------------------------------------------
iPad app: End of the Earth –•– http://davidgriffinapps.co.uk/
----------------------------------------------------------------------------
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
Here, i'll post a video.
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
I think that's the problem he's trying to resolve, the black box isn't constrained [perfectly] to the orange box, it's off to the left a little.
My point is that so is the orange box off to the left a little! (So the black box is as well) Not playing games here, that's just how I see it.
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
"My point is that so is the orange box off to the left a little! (So the black box is as well)"
If the black box is constrained to the orange box they should share a common centre, but they don't.
If you were to move the orange box off to the left a little then the black box would move a little to the left as well (by the same amount of pixels), ie: if they are correctly constrained they will move as one unit . . . but as you can see from the video and the screen shot they are not aligned properly . . . for some reason.
It doesn't much matter where you move the orange box to, left, right, up, down, a little to the left or a lot to the left, if the black box is constrained to the orange box it should move with it . . . but instead there is an offset, I think that's the thing he is trying to resolve (but of course I might be wrong here).
What I'm saying is they do share a common centre; and as been said before, the orange box is off-centre over to the left and so is the black box by the same amount from the centre point because of the constrain to x; but because the black box is larger, it appears to be more of a difference outside of the screen area. It's difficult to explain, so I made a test.
The first one, all the boxes are perfectly centred. In the second one, both the orange box and grey box as well as the black box is moved over to the left by just 2 pixels. and yet the difference between the left and right side of the grey box relative to the green box (denoting a screen area) looks far more than 2 pixels. As I say, difficult to explain, so here's the test pic:
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
"What I'm saying is they do share a common centre"
Honesty, they don't !
That's the point Gnomer is making, even though they are constrained to a common X position the two do not share a common centre.
Measure it yourself, the distance between the left hand side of the orange box and the left hand side of the grey box in the OP is 214 pixels, the distance between the right hand side of the orange box and the right hand side of the grey box in the OP is 204 pixels.
Ha, I see what you mean now, @Tynan!
I solved the mystery, I think though.... I took another close look at @Gnomer 's video and what I think is happening is:...............
..............................the black box is constrained to the blue box, not the orange box... would you agree?
So with the orange box involved it's all a matter of Who's Constraining Who? (Didn't that have a good run on Broadway before moving to the West End? ;-) )
If it's not that, I'm flummoxed.
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
I have gotten rid of other stuff to make it easier
@gyroscope
@tynan
Damn ! I am on GS 0.9.90 . . . . so cannot open your 0.9.91 GS file . . . !
I think gyroscope might be onto something with his 'blue box' mystery.
Personally I am off to see 'Who's Constraining Who?' with Danny DeVito.
Anyone else able to take a look?
I'm also on GSC 0.9.90 but I'll "dare" to download the update as stand-alone sometime tomorrow just to take a look at your game file, if you like. In the meantime, I hope your problem is resolved.
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
No mater what the middle of the scene any artwork or tiles will appear to have a gap or pushed to the left by a few pixel. it's more prominent viewing on the device itself.