June 23, 2017, 03:35:34 AM

Author Topic: Old Flash scaling  (Read 1348 times)

squiddingme / solar

  • Newbie
  • *
  • Posts: 38
  • you gotta be squiddin' me
    • View Profile
    • twitter
Old Flash scaling
« on: July 27, 2014, 11:09:55 AM »
The newest versions of HaxePunk change the size of the stage to match the Flash stage size instead of scaling up the graphics like older versions of HaxePunk. However, in native, it still scales the graphics instead. Can I make HaxePunk on Flash revert to its older method of scaling?

Tamanhung

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Old Flash scaling
« Reply #1 on: September 02, 2014, 05:02:06 AM »

Things happened was unbelievable.I want to do it same you.

ibilon

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 581
    • View Profile
    • My website
Re: Old Flash scaling
« Reply #2 on: September 03, 2014, 09:31:07 AM »
Do you have a constructor in your main class?
Could help I think:
Code: [Select]
class Main extends Engine
{
    public function new()
    {
        super(640, 480);
    }
}
(adapt to your game (not window) resolution ofc)