Not aligning properly.

GnomerGnomer Member Posts: 292
edited February 2012 in Working with GS (Mac)
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 :)

Photobucket

Comments

  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    edited February 2012
    Hi @Gnomer

    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

  • GnomerGnomer Member Posts: 292
    Thats a screenshot from in game, there is an actor behind with the camera attribute, changing the orange position wont change anything
    Here, i'll post a video.
  • GnomerGnomer Member Posts: 292
    edited February 2012
  • CloudsClouds Member Posts: 1,599
    Can you upload the project file to mediafire.com/ ?
  • GnomerGnomer Member Posts: 292
    Yeah, but I have to go now, so i'll upload it tonight if thats okay? Thanks :)
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    Hope @Tynan sorts it for you! In the meantime, I still say that it's because the orange box is over to the left, and so is the black box constrained to it, the left side of the black box exaggerated because it larger... just a thought.

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • GnomerGnomer Member Posts: 292
    Yeah but as you can see, moving the orange blog block does nothing, and also changing the size wouldn't change the centrepoint. I'm on my phone ATM but hopefully we can sort this out when I get home and send the file
  • GnomerGnomer Member Posts: 292
    edited February 2012
    Stupid phone made a blooming triple post ...
  • GnomerGnomer Member Posts: 292
    edited February 2012
    Sorry
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    edited February 2012
    Hey @Gnomer, the black box looks to be constrained OK with the orange box, there's probably something wrong with the camera attribute positioning; the last preview in the vid shows the orange box jump to the centre but not exactly in the centre, x-wise...x-wise...x-wise... ;-) so it follows that the black box isn't either. Interesting problem; hope it gets sorted.

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • CloudsClouds Member Posts: 1,599
    edited February 2012
    "Hey Gnomer, the black box looks to be constrained OK with the orange box"

    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.
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    edited February 2012
    "I think that's the problem he's trying to resolve, the black box isn't constrained with 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

  • GnomerGnomer Member Posts: 292
    Yeah, I get your point, the orange one definitely looks a bit off, I'll check the camera attributes when I get home but they looked okay when I checked before :s
  • CloudsClouds Member Posts: 1,599
    edited February 2012
    @gyroscope

    "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).
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    edited February 2012
    Hi @Tynan

    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:

    Photobucket

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • CloudsClouds Member Posts: 1,599
    edited February 2012
    @gyroscope

    "What I'm saying is they do share a common centre"

    Honesty, they don't ! :D

    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.
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    edited February 2012
    "Honesty, they don't ! :D "

    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

  • GnomerGnomer Member Posts: 292
    edited February 2012
    Here you go: http://www.mediafire.com/?nb7km79v60m86kg

    I have gotten rid of other stuff to make it easier :)

    @gyroscope
    @tynan
  • CloudsClouds Member Posts: 1,599
    @Gnomer

    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.
  • GnomerGnomer Member Posts: 292
    aww, kk. I have looked at it but the blue block doesn't seem to be it :s

    Anyone else able to take a look?
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    Hi @Gnomer, sorry about the banter between @Tynan and myself, almost forgot it was you who started the thread!!

    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

  • GLGAMESGLGAMES SingaporeMember Posts: 988
    I think i did highlight this issue when the new Gs version update was live.
    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.
Sign In or Register to comment.