Grid

imallthatimallthat Member, PRO Posts: 19
edited November -1 in Working with GS (Mac)
Is there a way to see what numbers (x,y) on my screen so i know where to place things? this is for my computer btw

Comments

  • synthesissynthesis Member Posts: 1,693
    create an actor...insert the display text behavior...assign the game attribute you wish to display...place the actor in your game. DONE!

    (I use them all the time and keep an actor in the top of my list handy for such a purpose)

    Not sure what you mean by "this is for my computer by the way"...GameSalad X and Y are relevant to the device X and Y (iphone...ipod...) ?!?!?
  • synthesissynthesis Member Posts: 1,693
    BTW...
    If you want a dynamic actor...to report in real time...
    set up the same actor above and add 2 constrains to it (self.position.X and Y) and place 2 text samples (I usually make one really big in white and the other small in black since the are on top of each other) with each displaying the constrained values.

    Then add a rule:
    when Mouse/Touch is pressed...self.Position.X is Touch.X (same for Y)

    This will allow you to move it around and report the X and Y location of the actor. Make the actor image a 1 pixel crosshair and...voila!

    [EDIT]
    just learned this a moment ago...

    You can do multi line text
    just hold option and hit enter after each line.

    if you want more then one attribute value displayed, just add .."/n".. between them.
  • ORBZORBZ Member Posts: 1,304
    I think he's talking about during design time a layout grid.

    Ya, that's something we all want. Snap-to-grid would be nice too! Even a ruler would rock.

    But alas, that doesn't exist. What a lot of us do is make a grid in photoshop or something like that and put that as a low alpha background overlay during development, then delete it from the scene before publishing.
  • synthesissynthesis Member Posts: 1,693
    Ahhh...yes...I agree...I would like a HUD within the dev environment that report actor data when you select the actor!!!
  • JackBQuickJackBQuick Member Posts: 524
    There's an app called Slammer that you can use. It costs $20. There's a write-up of it at appstorm; as well, there is a good movie showing its features on the Slammer website.

    Theoretically, you can use Free Ruler in conjunction with an app called Afloat. I haven't tried this so I make no guarantees that this will work. If someone does do this, please post your results.

    Me, I use a grid that I created in Pixelmator. After I place all my actors where I want them, I delete it from GameSalad.
Sign In or Register to comment.