Composer Effects, adjusting the ZoomInOut on x,y coordinates

Hey there,

I’m looking to use the zoomInOut effect but was wondering if there was a way to have it zoom in on a specific x, y coordinates.  I have a menu screen with buttons and it would be great if the zoom in an out happened over the button instead of the default of doing it in the middle of the screen.  I might just use another effect if this isn’t possible but thought maybe someone knew.

Thanks!

It is possible.  There is pinch-zoom code floating around that does the same kind of thing.  Find it and extract the zooming code.  Then instead of using the center of the pinch substitute your own xy coords.

Here is an older article that probably has the code you need (starting around ‘Making it useful’)

https://coronalabs.com/blog/2013/01/22/implementing-pinch-zoom-rotate/

It is possible.  There is pinch-zoom code floating around that does the same kind of thing.  Find it and extract the zooming code.  Then instead of using the center of the pinch substitute your own xy coords.

Here is an older article that probably has the code you need (starting around ‘Making it useful’)

https://coronalabs.com/blog/2013/01/22/implementing-pinch-zoom-rotate/