Bug Issue: Stencyl attempts to use 3x graphics when only 4x is enabled.


Pages: 1

letmethink

  • Master Stencyler
  • *
February 20, 2016, 08:32:21 am
When initialising the screen in Universal.hx, the scale of graphics to use is selected. This is set by setting the two variables in a way similar to this:
Code: [Select]
Engine.SCALE = 1.5;
Engine.IMG_BASE = "1.5x";
However, this is set based on the max scale selected. Therefore, if 4x is selected and 3x isn't, sometimes the graphics will be defaulted to 3x resulting in actors displaying as white squares. This is largely apparent on mobile games where, depending on the device, the resolution is always different.

While it would be preferrable for in MyAssets.hx to store whether each individual scale mode is selected, currently it is possible to read whether individual scale modes are selected through Data.xml for each platform. It would be great if this was read in Universal.hx to sort out this bug of actors displaying as white rectangles.


letmethink

  • Master Stencyler
  • *
March 05, 2016, 12:50:04 pm
Submitted a PR to fix this (once it is merged it needs some testing).
https://github.com/Stencyl/stencyl-engine/pull/18


captaincomic

  • Master Stencyler
  • *
March 06, 2016, 10:32:20 am
Merged in build 9006.


Issue updated by letmethink - March 06, 2016, 01:06:27 pm
  • Status changed from New to Resolved


Pages: 1

Details

  • Reported
    February 20, 2016, 08:32:21 am
  • Updated
    March 06, 2016, 01:06:27 pm

  • View Status
    Public
  • Type
    Bug
  • Status
    Resolved
  • Priority
    Normal
  • Version
    Stencyl 3.4
  • Fixed in
    (none)
  • Assigned to
    (none)
  • Category
    Engine

Tags