User Tag List

Results 1 to 4 of 4

Thread: Best way to 2x scale a game

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    Ryan's Avatar
    Join Date
    Nov 2008
    Location
    Australia
    Posts
    1,279
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Best way to 2x scale a game

    I'm looking to 2x scale my game and still preserve hard edges so that it maintains its pixel art style.

    Current dimensions are 320x200. If I set the flash embed parameters to width=640 height=400 and use 'exact fit', the browser smooths the scaled graphics, which ruins the pixel-art feel.

    I'm not keen on upscaling my graphics by 200% because I have existing code that relies on pixel-perfect accuracy, I'd have to recode that to compensate for everything being 2 pixels apart now instead of 1.

    My only thought is that perhaps there is an extension that can stretch the frame without smoothing?

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCSWF Export Module
    N64Mario's Avatar
    Join Date
    Nov 2008
    Location
    USA
    Posts
    1,308
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    Since this topic is under SWF module, have you tried using the Flash FX object? It has an scale XY option, you only need to use it once, and then the whole game will be scaled like that.

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    Ryan's Avatar
    Join Date
    Nov 2008
    Location
    Australia
    Posts
    1,279
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Wow that's great. I thought that was for scaling individual objects, not the frame itself. I'll test it when I get home.

    FYI yes, this is a Flash-only problem. I am aware of non-flash extensions that do this.

  4. #4
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export ModuleUnicode Add-on
    Looki's Avatar
    Join Date
    Aug 2006
    Location
    Karlsruhe, Germany
    Posts
    3,741
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)
    Hey,

    You can download the extension here: http://clickteam.info/looki/Extensio...sh/FlashFx.zip
    All you need to do is have one event at the start of the first frame: Stage > set scale mode. Enter "exactFit", then it should resize just fine.

    For further questions, you can check the Flash Fx thread in the extension sub forum.

Similar Threads

  1. Setting the Scale of an Object to the Scale of the Object it was Created From
    By Corlen in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 26th July 2013, 07:53 PM
  2. Scale Example
    By Captain_Harris in forum File Archive
    Replies: 1
    Last Post: 3rd April 2012, 02:39 AM
  3. Scale Bug
    By Viewtiful in forum SWF/Flash Export Module Version 2.0
    Replies: 0
    Last Post: 19th June 2010, 07:36 PM
  4. scale example
    By Clicktastic in forum File Archive
    Replies: 1
    Last Post: 3rd August 2006, 05:08 PM
  5. Another Scale bug.
    By AtomX in forum File Archive
    Replies: 5
    Last Post: 20th July 2006, 03:37 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •