Zoom Out

kajutokajuto Member Posts: 314
edited November -1 in Working with GS (Mac)
somebody help, after i put my zoom out mantaining the HUD my actor does not function after i touch the actor to zoom out , why? helpppppp

Comments

  • kapserkapser Member Posts: 458
    It is a weird gamesalad bug I've been struggling with a LOT.

    There is a video tutorial from TshirtBooth that explains how to scale actors accordingly to your camera size. However, unless I'm wrong, he doesn't seem to take note of this issue in the tutorial because it doesn't test button's functionnality.

    What happens is that the actor will scale, but the collision won't reflect the changes it did so it won't work.

    My solution (not perfect but working on it) was to stack two different actors, one for the image and one for the touch collision rule.
    The image will be resized relatively to the camera size. So if you zoom out X2 camera size, you will change your actor size to X2 it's position and size.

    Doing this however will affect the collision in a weird way. What I did is add my collision object of the same initial size of the image actor, but I do not add any resize code into it. It will resize itself and then match with the image actor you re-sized yourself.

    Hope it helps. I've been having a lot of problem with my hud because the whole game is in 960X640 and this bug has been confusing me a lot but I believe this solution might work.
  • expired_012expired_012 Member Posts: 1,802
    Im still having trouble with this.

    After zooming out, none of my actors respond to my touches and I don't know why.

    Any other solutions?
Sign In or Register to comment.