How to zoom and keed the hud on the right position. Help with mathmatics...

scrapee_netscrapee_net Member Posts: 424
edited January 2012 in Working with GS (Mac)
Hello.
I already watched the excelent tshirtbooth video about how to zoom and keep the hud on the right position, but the problem is that I'm not going to zoom from 480x320 to 960x640 as explaing in the video.



I want to zoom from 480x320 to 550x367 ( a small zoom) when a button is touched... What I don't know is what kind of calculation I do now to get exactley the position and size for the hud to keep them in the right position?

Comments

  • scrapee_netscrapee_net Member Posts: 424
    edited January 2012
    already found solution. Its like this.

    self.mywidth*550/480
Sign In or Register to comment.