Thanks for the information, very helpful to me! i am able to scale and “zoom out” pretty well. and im able to “zoom in” again but on the zoom back in it is very rigid and does not look smooth at all. maybe you could give me a tip or show me an example from your code.
here is what i have:
if(event.target.type=="tire" and event.other.type=="zoomout" ) then
if ( event.phase == "began" ) then
cameraActive = false
gameScreen.xReference = tireObject.x
gameScreen.yReference = tireObject.y
transition.to( gameScreen, { time = 600, xScale=.50, yScale=.50, transition=easing.inOutExpo } )
end
end
if(event.target.type=="tire" and event.other.type=="zoomin" ) then
if ( event.phase == "began" ) then
cameraActive = true
gameScreen.xReference = 0
gameScreen.yReference = 0
transition.to( gameScreen, { time = 600, xScale=1, yScale=1, transition=easing.inOutExpo } )
end
end
i may be making this too complicated, any suggestions?
i think my problem is that when i zoom out i make my groups reference point my tire (main character) and then when i want it to zoom back in i need to set the group back to 0,0. which seems to work but the screen goes crazy for a second. [import]uid: 19620 topic_id: 7716 reply_id: 27950[/import]