TOUR
PRICING
HELP
Stencylpedia
Blocks Guide
Sample Games
Developer Center
FORUMS
CHAT
#MADEINSTENCYL
EDUCATION
SIGN IN
×
Welcome back!
Username or E-mail
Password
(
Forgot?
)
C
OMMUNITY
Home
Issue Tracker
Inbox [0]
New Posts
New Replies
Search
Stencyl Community
→
Stencyl
→
Ask a Question
→
Zoom screen option
Pages:
1
Zoom screen option
Bhoopalan
Posts: 1018
December 31, 2015, 09:11:35 am
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
December 31, 2015, 10:19:58 am
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
December 31, 2015, 10:27:29 am
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
December 31, 2015, 10:43:35 am
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
December 31, 2015, 07:03:16 pm
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
December 31, 2015, 07:15:23 pm
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
December 31, 2015, 07:58:30 pm
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
December 31, 2015, 08:36:35 pm
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
December 31, 2015, 08:42:09 pm
EDIT: Modified for better zoom function.
No problem. This one is a better version though.
Pages:
1