开发者

as3isolib : how to zoom with the same IsoView size?

(development platform : Flex 4)

Context:

  • Grid size : 64 x 64 cells
  • View : 760 x 600 px

2 zoom levels are available:

  • Min level : show all the grid (64 x 64 cells) in my IsoView
  • Max level : only show 16 x 16 cells in my IsoView

How can I do that ?

Thank you very much,开发者_开发知识库

Regards,

Anthony


Just apply .zoom(factor) to your view.

For eg:

var view:IsoView = new IsoView();
view.zoom(3);
scene.render();

*Note: remember to click "accept" the answers if it answers your question.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜