Hello Guest

Author Topic: Smooth zoom out tk2dCamera  (Read 3853 times)

arthurconti

  • Newbie
  • *
  • Posts: 1
    • View Profile
Smooth zoom out tk2dCamera
« on: October 22, 2013, 11:50:30 am »
Hello guys,

I'm using a tk2dCamera with zoomFactor=2 in the begging of the scene. After user touchs the screen I would like to zoom out smoothly to zoomFactor=1 and centered in the point used in the begging.

I didn't find any way to do that. If you need any more explanation, please tell me.

Looking foward for an answer.

Thanks

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Smooth zoom out tk2dCamera
« Reply #1 on: October 22, 2013, 12:01:20 pm »
You could use a tweening library, eg. Hotween, GoKit to do this. Or you can write your own script to do it. tk2dTileMapDemoFollowCam does this.