Touch coordinates & Zoom
quimqu
Member Posts: 22
Hi there,
I have a game controlled by a joystick. The joystick is controlled by an invisible actor that follows the touch coordinates. It works perfectly, except when I zoom out the game. I zoom out the background and actors with a camera interpolation, and to keep the controls in the same position, I interpolate the control actors size to the same % of the camera. It works fine, but the invisible actor that is controlled by the touch coordinates, doesn't work properly, as the touch coordinates don't follow the resizing of the actors.
Any idea how to solve this?
Thank you
I have a game controlled by a joystick. The joystick is controlled by an invisible actor that follows the touch coordinates. It works perfectly, except when I zoom out the game. I zoom out the background and actors with a camera interpolation, and to keep the controls in the same position, I interpolate the control actors size to the same % of the camera. It works fine, but the invisible actor that is controlled by the touch coordinates, doesn't work properly, as the touch coordinates don't follow the resizing of the actors.
Any idea how to solve this?
Thank you