Grid
imallthat
Member, PRO Posts: 19
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
(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...) ?!?!?
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.
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.
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.