Question with image scaling

Player_EPlayer_E Member, PRO Posts: 604
edited November -1 in Working with GS (Mac)
Okay I have the Resolution Independence enabled.

my background image is sized at 960x640 every was fine and images fit on the screen no issues

I introduced a rule in my game that when

zoom in = True
Change Attribute Self.Size.Width to Self.Size.Width*2
Change Attribute Self.Size.Height to Self.Size.Height*2
Otherwise
Change Attribute Self.Size.Width to 960
Change Attribute Self.Size.height to 640

When my game starts zoom in = false, so my images are scaled to 960x640, but for some reason the image is still zoomed due to GS acting like the screen size I have is 480x320.

Now to test this theory I changed the second part of my rule to state
Otherwise
Change Attribute Self.Size.Width to 480
Change Attribute Self.Size.height to 320

and now everything is working just fine. This bothers me because I want to use the retina display and I have a hunch that setting things up this way will not take advantage of it.

any idea what the issue is?

Comments

  • firemaplegamesfiremaplegames Member Posts: 3,211
    To make things work, only the artwork needs to be designed for 960x640

    Everything else in the game needs to be designed for 480x320.
    The Actors should all be 1/4 the art size.
  • Player_EPlayer_E Member, PRO Posts: 604
    So.... The rules I have set up should suffice?
    your kind of confusing me with what your saying here.

    my artwork is designed for 960x640, but I need to set up my rules in GS at the scale of 480x320 correct?
  • firemaplegamesfiremaplegames Member Posts: 3,211
    yes, that is correct.
Sign In or Register to comment.