Scene zoom

Hi,

i have to zoom the scene at a given point. Suppose i set the screen resolution to W x H. Now, if i load .png sprite and draw it normally, i can see it displayed perfectly.
Now, suppose i want to zoom around pixel (x,y) (that is, after the zoooming, the point (x,y) will be at position (w/2,h/2)),
with x >= 0 && x <= w- 1 and y >= 0 && y <= h - 1.

How can i do this?

Hi,

Easiest way sprite~~>setScale or you may scale parent node~~ this way all children will be zoomed in/out. Another way sprite/parent node getCamera()>setEyeXYZ however this seems to less convenient, read reference.

BTW, zoomedX/Y = originX/Y * scale.