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.
Comments
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.
After zooming out, none of my actors respond to my touches and I don't know why.
Any other solutions?