Hey guys. Let me start by apologising as about 90% of the threads in here are mine...
Okay, so I've asked this before a long time ago but found it's not possible with the iOS exporter. But now I'm developing my game with Windows in mind, so how can I change the resolution of the game on only particular frames? I should give you some details:
Currently the game runs in a window twice the size of the original resolution, using the Window Control object. This stretches the pixel art to 2x the actual size.
When I get to a frame that displays story artwork, I want the resolution of the game to double, but keeping the same window size. This is because although pixel art looks great (imo) when proportionally stretched, hand drawn artwork does not. For this reason, I need to alter the resolution whenever I wish to show this artwork.
I hope this is possible! How can I go about doing this?
Are you saying you pretty much just want a Zoom out feature?
Unfortunately for us, MMF does not render any graphics outside of the actual window. This means that if you were to zoom out using a pixel shader, your viewable area (or resolution) would not actually increase.
The only solution I've heard of, but have not tested is to actually run your game as a sub-app.
For example:
You want the game to have a viewable area of 320x240, but you want to expand to 1024x768 in certain areas. You would run the game as a sub-app at 1024x768 resolution/window size, but have the window size of the Main-app set to 320x240.
When you want the viewable area to increase, you zoom out via a pixel shader. Theoretically, since the game is running at 1024x768, the pixels outside of the 320x240 area should still be viewable since they are being rendered inside of a 1024x768 box rather than in a 320x240 box.
I don't know if this works as I have not tested it. I also have no experience working with sub-apps as a FYI so unfortunately I can't provide more information.
Thanks Gamester. I was hoping it'd be possible through other means, that's a bit disappointing. I've never tried sub apps before so that's a little scary, but I may start researching using them.
One other method - I discovered you can run a mmf app on iPhones at any resolution you want, and then display a video file inside the app at the actual resolution of the iPhone. That's pretty handy, and how I was planning on getting around the issue on iOS. I get the feeling the same will not be true for Windows applications though, but I'll have a look...
It seems like MMF2.5 has had a change in the rendering engine, so you're able to scale layers independently and the engine will render them accordingly. If this is true, then we're finally going to be able to zoom-out past the game window size.
In Jamie's Revenge 2 for example, the game was natively 320x240 with a window size of x2 or x3. The cutscenes were external swf files that would be displayed at the window resolution: not the native resolution
There is a Smart Zoom object (I think that's the name) being developed for Fusion 2.5, this was noted at the covention. I recall Francois saying that it probably won't work for the standard runtime, but will apply to iOS, Android, and any other exporters.