Flash game not resizing accordingly to the windows size

adytt

  • Posts: 51
Hello I'm playing around with Stencyl for a few days while trying to create my first platform game.
I currently use a 672x480 screen resolution and 48x48 pixels tileset,
My settings are the following:
Scale set to 1x
Scale mode set to  : Scale to fit (Letterbox).

Everything works good except that when exporting the game as .swf ,  if I resize the SWF player or Browser window by making it wider or such, the game won't resize according to the window new dimensions.
The game remains exactly 672x480 aligned to the top left corner and the rest of the available space fills with black.

Most flash games that are published online have this option to resize automaticaly and I would like to make mine the same, yet somehow I can't seem to make it work.




stefan

  • *
  • Posts: 2263
Have you picked a screen scale method? Its under options > web

rob1221

  • *
  • Posts: 9472
Stencyl doesn't support dynamic resizing.

stefan

  • *
  • Posts: 2263
Ah. Never really worked with flash but i thought it worked the same.

adytt

  • Posts: 51
Stencyl doesn't support dynamic resizing.

Wow this doesn't sound so good. So basically the game is stuck at exactly 672x480 and can't be resized by the browser to automaticaly  fit the embed area.

stefan

  • *
  • Posts: 2263
It seems not. What you can do however is figure out where you want to publish your game and make the game exactly in the size said website provides.

JeffreyDriver

  • Posts: 2262
There are ways around it. If your game will be embedded in a HTML wrapper you can set the size yourself. When you're playing it in the Flash player, you can resize the screen then just right-click and select 'Show All'.


adytt

  • Posts: 51
It seems not. What you can do however is figure out where you want to publish your game and make the game exactly in the size said website provides.
Well I hope that once the game will be ready to have it published on more websites, I know from past experience that it's better to have the game resize dinamicaly.
672x480 should be handled by most websites I believe.
 I tried to make it 640x480 but if I use 64x64 tiles the bottom part for the walk path/ grass / land would have and empty row.

adytt

  • Posts: 51
There are ways around it. If your game will be embedded in a HTML wrapper you can set the size yourself. When you're playing it in the Flash player, you can resize the screen then just right-click and select 'Show All'.


Thanks for the suggestion. Will test it to see how it works.

adytt

  • Posts: 51
I found a game that was built in Stencyl called "Slender Run" that allows this kind of dynamic resizing that I'm trying to use for my current project
I have uploaded a short  recorded youtube video displaying this kind of resizing the game window in flash player that can be watched here:
 https://youtu.be/8pqOoe2nsQM

If anyone knows how this can be achieved please bring some light to me.
Regards!

JeffreyDriver

  • Posts: 2262
If it's in Flash Player, it just looks like 'show all' has been selected. It could easily be done with html/css if the place you're uploading it to allows html wrappers.

adytt

  • Posts: 51
Here is a new video that I hope it will clarify what I'm trying to achieve.
The video shows the .swf file opened in SWF PLAYER and can be resized easily by using the mouse to drag it's margins.
There is browser involved and no embed code or such.
It's just a simple .swf file played locally on the hard drive.
I have tried all options for exporting my game to behave like this but did not succeed.
Second part of the video show my game behaviour when trying to resize.

https://youtu.be/VwPlpLq0Re8

hizkiaihutg

  • Posts: 3
may be you must play Mibibli's Quest its made with stencyl too, http://community.stencyl.com/index.php/topic,31709.0.html
i dont know how he can resizing the windows size.

hizkiaihutg

  • Posts: 3
Omg, i dont get solution.

hizkiaihutg

  • Posts: 3
Stencyl doesn't support dynamic resizing.

Do you have any solution??