Ortho camera and zooming

Hi all.
I have a world size is 1024x1024, ortho camera and I am using zoom via setScale(), but in this way I have issue is camera stands on the spot.
How can I solve this problem or may be somebody direct me to right way with zooming.

Thank you

any ideas, please

Can you show me what you are already doing? have you looked in cpp-tests?

Thank you for reply.
Yes, I have looked in tests, but i didn’t find some information about camera(only 3d), may be you can direct me.
I have tmx map 1024x1024 and create camera:
_camera = Camera::createOrthographic(s.width, s.height, 1, 1000);
_camera->setCameraFlag(CameraFlag::USER1);
_layer->addChild(_camera);
and I do setScale on tmx map

Thank you for reply.
Yes, I have looked in tests, but i didn’t find some information about camera(only 3d), may be you can direct me.
I have tmx map 1024x1024 and create camera:
_camera = Camera::createOrthographic(s.width, s.height, 1, 1000);
_camera->setCameraFlag(CameraFlag::USER1);
_layer->addChild(_camera);
and I do setScale on tmx map

You don’t have a camera in a 2D game (usually). But you can have a 3D Scene with 2D objects and move the camera to a specific location, etc.

Test 26 does what you want. Press and hold the zoom button. Now you just need to do it faster for your needs.