Trying to use Joe's circle constrain with zoom - HELP!

scitunesscitunes Member, Sous Chef Posts: 4,047
edited November -1 in Working with GS (Mac)
Joe's circle constrain rules work great when not using zoom. I was even able to use min on the x to constrain to a half circle. I was feeling pretty good.

Now I'm trying to get this same system to work whether I am at the normal zoom level or zoomed out.

I have a zoom ratio that constrains so I have this decimal that I could put into equations, but I just can't figure out how to use it.

Here's joe's circle demo:

http://gamesalad.com/game/play/71909

When zoomed out the zoom ratio for my current game is 1.75 when normal it is 1.0 (duh)

If someone can look at Joe's demo and figure out where to put the 1.75 so that the actor lines up with touch1x and y I would be forever grateful!!!

I'm going nuts!!!!!

EDIT: The ratio is camera.size.width / game.display size.width

Comments

  • scitunesscitunes Member, Sous Chef Posts: 4,047
    got it!

    GS PLEASE PLEASE PLEASE fix how the camera works when you resize it. It really is a shame that so much math has to be involved just to get the touch coordinates to work right when zoomed in or out.

    thanks
Sign In or Register to comment.