actor position RI question

apbrooksapbrooks Member Posts: 6
edited November -1 in Working with GS (Mac)
If have have resolution independence enabled, does GS move and scale positions of actors accordingly?

example, i have an actor locked at x = 75. will this automatically become 150 when its played on an iphone 4? if not are there any workarounds??

thanks

Comments

  • 3d103d10 Member Posts: 471
    Pls check this.I think its the same question.

    http://gamesalad.com/forums/topic.php?id=24357
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    why would you wwant something positioned different on the iphone 4?

    You just check resolution indepence and make your art doubled the size and gamesalad takes care of the rest
  • apbrooksapbrooks Member Posts: 6
    thanks, I guess my friend beat me to posting our question lol

    I don't know how to move forward and I am thinking of just rebuilding the game without resolution independence and smaller images because so much of the game is dependent on spawn locations.

    Will i see a dramatic drop of in quality on the iphone 4? i am new to this and not sure what to expect if I dont use RI...

    thanks
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    You still make no sense. You cannot have different positions on different devices unless you build two different apps. Non RI on iphone will look just like a 3g and 3gs device. But the onscreen positions are exactly the same wether you use RI or not.
  • apbrooksapbrooks Member Posts: 6
    @John... that's what I want to do... I want to just let it take care of the rest but from what I was reading it says that if I have it positioned at x = 75 in the creater i want GS to change positions for me. Maybe I did not understand what he meant. Can you clarify? If i have items spawning off screen at x = 500 before, before they move on screen, will GS scale the actors to spawn at x = 1000 for the iphone 4?
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    no why would it do that? the screen size doesnt change for the iphone 4 and/or for resolution independance

    i think your understanding it wrong, read up on ri some more

    theres been 30 threads the past 2 days about ri just go threw the recent discusion threads
  • 3d103d10 Member Posts: 471
    No It will spawn at x= 500 only.This has nothing to do with ri.
    Why would it.It makes no sense.
  • apbrooksapbrooks Member Posts: 6
    I dont want the games to look any different, I think Im not asking my question clearly. From what I did read on RI is that it scales your original image in half. so 960 x 480 becomes 480 x 320, and makes a copy so on the iphone 4 is uses the larger image... I got that, im just trying to confirm that the spawning locations and everything all scale correctly with the image. Sorry if im still not making sense
  • apbrooksapbrooks Member Posts: 6
    @3d10 if what you are saying is correct then if im playing the game on an iphone 4, the images will pop up on the screen because the screen is 960 wide, but if the game scales correctly it will still spawn off screen first.... I just dont think what i am trying to ask is coming out correctly.

    These forums are going to turn on me fast LOL
  • 3d103d10 Member Posts: 471
    Its going to spawn off screen.As the actual size always remain the canvas size or whatever you say the actual screen size of iphone 4 is 480x320 it only the density of pixels that has double 960x640.So gamesalad is taking the actual size of the screen for spawning not the pixels.
  • 8bitnorth8bitnorth Member Posts: 11
    @3d10

    So basically the "canvas" is 480 x 320 no matter what screen and with RI it just doubles the pixels when on a retina device?? So say even if a background image is upscaled to 960 x 480 on a retina screen it still uses a canvas size of 480 x 320 for all actor positions and such? am i understanding that correctly?
  • 3d103d10 Member Posts: 471
    I have my actors spawning at 500 with ri checked so basically there is no reason why would it double your pixels for this purpose.it will spawn same for both resolutions.The actual size is that only.And gs already takes care of all this.And things go this way only if you are getting it.
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    gamesbyandrew said:
    @3d10

    So basically the "canvas" is 480 x 320 no matter what screen and with RI it just doubles the pixels when on a retina device?? So say even if a background image is upscaled to 960 x 480 on a retina screen it still uses a canvas size of 480 x 320 for all actor positions and such? am i understanding that correctly?

    Basiclly Yes. On RI devices you have 4 pixel in the place of normal devices. However all 4 pixels still count as 1 for positioning. You just have to make the art double the dimessions of the actors. THATS ALL. Nothing else
  • apbrooksapbrooks Member Posts: 6
    thanks tenrdrmer! that is exactly that answer i was looking for!!
  • 3d103d10 Member Posts: 471
    Tendr got it right thats the real thing.
Sign In or Register to comment.