Zoom screen option

Bhoopalan

  • Posts: 1018
Hi all,

I need a zoom option in my app and I'm not sure if it can be achieved with any available stencyl block. However, I assume it can be made using flixel code as shown in the below link:

http://haxeflixel.com/documentation/part-vi-zoom-and-cameras/

From what I understand, Stencyl is based on haxe flixel isn't it? Then we can accomplish 'zoom' option using the code provided in above link.

But I'm not sure where to start. First of all, am I misunderstanding anything? If not, can someone help me how this zoom feature can be accomplished?
If I helped you at anytime, help me back build my twitter followers :)
https://twitter.com/imbhoopalan

letmethink

  • *
  • Posts: 2545
Stencyl is not based on Haxeflixel. Instead the engine is built on top of Openfl directly. Therefore, implementing zoom is very difficult within Stencyl.
~Letmethink

Bhoopalan

  • Posts: 1018
Thank you so much for the advice.

So I understand it would be very difficult. But if I start reading through openfl documentation, will I be able to achieve zoom feature?
If I helped you at anytime, help me back build my twitter followers :)
https://twitter.com/imbhoopalan

CmdrWhitey13

  • Posts: 505
You can try looking at this post. I have put a behavior similar to this concept. It is a Scene Behavior at the end. There is a proof of concept on here to.

http://community.stencyl.com/index.php/topic,45731.0.html

Hope it helps.

Bhoopalan

  • Posts: 1018
Thanks so much for the post.

Unfortunately, I can't see the result there. The Left bottom side shows a sample of the screen but not a zoomed version isn't it?
If I helped you at anytime, help me back build my twitter followers :)
https://twitter.com/imbhoopalan

CmdrWhitey13

  • Posts: 505
You might be able to adjust the behavior to increase the width and height of the actors. Ill take a look into this concept.

CmdrWhitey13

  • Posts: 505
I have just modified the behavior. When setting it up, is zoomed? is false by default. You can check it for a zoomed in version.
It does zoom it in.
Hope this helps. 

Bhoopalan

  • Posts: 1018
Thanks so much for the behavior. I'll test it and implement it in my current project.

If I helped you at anytime, help me back build my twitter followers :)
https://twitter.com/imbhoopalan

CmdrWhitey13

  • Posts: 505

EDIT: Modified for better zoom function.

No problem. This one is a better version though.