is it just me?
diegocs
Member Posts: 531
In my gamesalad creator working area I have to move all the elements(actors) around because in the iphone they have a diferent x or y value. For example in my gamesalad work area everything my fit correctly, but in my iphone text is not where its supposed to be (lower than its supposed to). Does this happen to you to?
Comments
Not sure why this happens...have you tried using different fonts that might help.
I didn't have any problems with RW with the custom font btw.
Darren.
-Josh
Send and Receive Data using your own Server Tutorial! | Vote for A Long Way Home on Steam Greenlight! | Ten Years Left
===
EX: score counter in upper Right
self.Position.X = [expression] game.Display Size.Width - self.Size.Width + 20
self.Position.Y = [expression] game.Display Size.Height - self.Size.Height + 20
(the '+20' can be any number you want for the aesthetics of your game
to place on L use game.Display Size.Width - game.Display Size.Width +20
to place on Bottom use game.Display Size.Height - game.Display Size.Height +20)
===
Remember:
x is from left (0) to right (480 or whatever)
y is from top (320 or whatever) to bottom (0)
this best thing about this is that... when working in scenes you can add the button/counter objects outside the screen area and and do your detail work ... and at runtime those off-screen actors will show up where you want them.
make sure you have those actors in a front layer. (HUD)
indeed sometimes it is better to create a single graphic with all those button actors and plenty of clear pixels...
then correlate the events generated to touch location....
EX: align some images
Main Menu image
Score bg image
Back button image
then assign rules (All)
when touch is pressed
when touch.1.X = area of image X ± 5
when touch.1.Y = area of image Y ± 5
---do this
then you just assign the full-screen image to Display Size.Width/2; Display Size.Height/2
MH