is it just me?

diegocsdiegocs Member Posts: 531
edited November -1 in Working with GS (Mac)
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

  • UtopianGamesUtopianGames Member Posts: 5,692
    Yep...i remember doing a build and thinking i was going mad because score was way out from where i placed it.

    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.
  • magic101himagic101hi Member Posts: 713
    nope does not happen to me

    -Josh
  • sebmacflysebmacfly Member Posts: 1,018
    Happens to me too... i have to move my text actor to adjust it for my iDevice.
  • diegocsdiegocs Member Posts: 531
    So if some head chef reads this post, please fix this problem
  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
  • MotherHooseMotherHoose Member Posts: 2,456
    Sometimes it is just better to assign the x,y of static actors to correlate to Display Size

    ===
    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
Sign In or Register to comment.