I have a problem with image/sprite/layer scaling around some particular point.
1) I have a map loaded from tiled and added to scene
2) I want some functionality with two fingers. I already implemented scrolling/moving with two fingers. Now I want scaling.
For moving map, what I do, I calculate starting coordinates of the center between two fingers and I update accordingly.
Now I have a problem. I want to scale the map around the point between my two fingers. If I use simple sprite:setScale(n), it scales, however it scales around top/left corner.
Now my question. Is there a special function to set scaling point? Or should I use some math, to move map accordingly?
P.S. My first post here, so some random thoughts. I'm totally in love with Gideros. I came here from love2d background, was missing mobile development features. Getting used to everything bit by bit. Cheers.