Bug Issue: Engine.setZoom() doesn't work as expected in iOS game


Pages: 1

oripessach

  • Subscriber - Stencyl Studio
  • *
August 04, 2016, 05:50:51 pm
When I call setZoom() in flash (scale is set to 1) everything works as expected.

In iOS, however, only the top left quarter of the screen is drawn.

Here's the beginning of the log, showing the engine scale (set to 2) and related info:

Code: [Select]
jar:file:/Users/oripessach/Downloads/Stencyl-full/sw.jar!/res/logview4j/images/info.gif false INFO 1470357491933247574 stencyl.sw.app.filewatcher.ExternalAppLauncher [iOS] Purchases.hx:103: Purchases: Started
jar:file:/Users/oripessach/Downloads/Stencyl-full/sw.jar!/res/logview4j/images/info.gif false INFO 1470357490931247573 stencyl.sw.app.filewatcher.ExternalAppLauncher [iOS] Universal.hx:565: Scale Y: 1.171875
jar:file:/Users/oripessach/Downloads/Stencyl-full/sw.jar!/res/logview4j/images/info.gif false INFO 1470357490931247572 stencyl.sw.app.filewatcher.ExternalAppLauncher [iOS] Universal.hx:564: Scale X: 1.171875
jar:file:/Users/oripessach/Downloads/Stencyl-full/sw.jar!/res/logview4j/images/info.gif false INFO 1470357490931247571 stencyl.sw.app.filewatcher.ExternalAppLauncher [iOS] Universal.hx:484: Algorithm: Scale to Fit (Fill)
jar:file:/Users/oripessach/Downloads/Stencyl-full/sw.jar!/res/logview4j/images/info.gif false INFO 1470357490931247570 stencyl.sw.app.filewatcher.ExternalAppLauncher [iOS] Universal.hx:461: true
jar:file:/Users/oripessach/Downloads/Stencyl-full/sw.jar!/res/logview4j/images/info.gif false INFO 1470357490931247569 stencyl.sw.app.filewatcher.ExternalAppLauncher [iOS] Universal.hx:460: 750
jar:file:/Users/oripessach/Downloads/Stencyl-full/sw.jar!/res/logview4j/images/info.gif false INFO 1470357490931247568 stencyl.sw.app.filewatcher.ExternalAppLauncher [iOS] Universal.hx:459: 1334
jar:file:/Users/oripessach/Downloads/Stencyl-full/sw.jar!/res/logview4j/images/info.gif false INFO 1470357490928247567 stencyl.sw.app.filewatcher.ExternalAppLauncher [iOS] Universal.hx:383: Engine Scale: 2x
jar:file:/Users/oripessach/Downloads/Stencyl-full/sw.jar!/res/logview4j/images/info.gif false INFO 1470357490928247566 stencyl.sw.app.filewatcher.ExternalAppLauncher [iOS] Universal.hx:382: Max Scale: 2
jar:file:/Users/oripessach/Downloads/Stencyl-full/sw.jar!/res/logview4j/images/info.gif false INFO 1470357490928247565 stencyl.sw.app.filewatcher.ExternalAppLauncher [iOS] Universal.hx:370: Theoretical Scale: 2
jar:file:/Users/oripessach/Downloads/Stencyl-full/sw.jar!/res/logview4j/images/info.gif false INFO 1470357490928247564 stencyl.sw.app.filewatcher.ExternalAppLauncher [iOS] Universal.hx:222: Screen DPI: 326
jar:file:/Users/oripessach/Downloads/Stencyl-full/sw.jar!/res/logview4j/images/info.gif false INFO 1470357490928247563 stencyl.sw.app.filewatcher.ExternalAppLauncher [iOS] Universal.hx:221: Screen Height: 750
jar:file:/Users/oripessach/Downloads/Stencyl-full/sw.jar!/res/logview4j/images/info.gif false INFO 1470357490928247562 stencyl.sw.app.filewatcher.ExternalAppLauncher [iOS] Universal.hx:220: Screen Width: 1334
jar:file:/Users/oripessach/Downloads/Stencyl-full/sw.jar!/res/logview4j/images/info.gif false INFO 1470357490928247561 stencyl.sw.app.filewatcher.ExternalAppLauncher [iOS] Universal.hx:219: Stage Height: 320
jar:file:/Users/oripessach/Downloads/Stencyl-full/sw.jar!/res/logview4j/images/info.gif false INFO 1470357490928247560 stencyl.sw.app.filewatcher.ExternalAppLauncher [iOS] Universal.hx:218: Stage Width: 600

I'm attaching a screenshot of the game with the broken display.


Justin

  • Master Stencyler
  • *
August 04, 2016, 07:38:25 pm
FYI you forgot to attach a screenshot.


New attachment added by oripessach - August 04, 2016, 08:06:18 pm


oripessach

  • Subscriber - Stencyl Studio
  • *
August 04, 2016, 08:06:39 pm
Right you are.

Turns out that pressing the "Attach" button really helps.


rob1221

  • Master Stencyler
  • *
April 30, 2017, 07:44:20 am
Can be reproduced in Flash if using full screen with scaling so this problem is caused by scaling modes and not a specific platform.
  • Status changed from New to Confirmed


Justin

  • Master Stencyler
  • *
February 04, 2018, 02:25:28 pm
Most scaling stuff should be okay in 3.5, but I haven't tested setZoom much so this should be looked into.
  • Tags added: 3.5 LP


rob1221

  • Master Stencyler
  • *
May 07, 2018, 09:34:29 am
Fixed in b9877.
  • Status changed from Confirmed to Resolved
  • Issue Assigned from (none) to rob1221
  • Tags removed: 3.5 LP


Pages: 1

Details

  • Reported
    August 04, 2016, 05:50:51 pm
  • Updated
    May 07, 2018, 09:34:29 am

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

Tags


Attachments


* Screen Shot 2016-08-04 at 6.45.53 PM.png (30.06 kB, 673x387 - viewed 68 times.)