I want to zoom/in/out on CCLayer. I did not find any tutorial yet. can anybody tell me any tutorial on this. as i could not find anything. Thanks in advance
Zoom on layer please help
(5 posts) (4 voices)-
Posted 7 months ago #
-
set myLayer.scale
Posted 7 months ago # -
can you gave me any code example please.
Posted 7 months ago # -
Posted 7 months ago #
-
The above link is a pretty comprehensive discussion of how you can pinch to zoom etc. However, if you just want to zoom to say twice the size, use
myLayer.scale = 2.0f;I think I'm right in saying you can use CCActions to do this too should you want a more fluid movement:
[myLayer runAction:[CCScaleTo actionWithDuration:1.5f scale:2.0f]];Check the code above, it's just from memory.
Posted 7 months ago #
Reply
You must log in to post.