Download

Gamepad Zoom

Hi, i’m making a top down game for mobile and pc, and one of the things i need is to be able to zoom in and out with the rightstick virtual gamepad and alternatively with the wheelmouse if used on pc. Although i managed to create both systems (thx TeslaDev!), if i leave both on, only the gamepad zoom works, shuttind down the wheelmouse zoom.

How can both zoom systems coexist ?

Another thing is that the mouse wheel system zoom works fine, but the gamepad system skips the clamps on the spring arm of the camera zooming out to the infinity.

How can i clamp the gamepad zoom system?

Thnxs in advanced;

Luis

pd: srry for my neanderthal english