Scale outer and accidentally content outside window

0 favourites
  • 3 posts
  • Hi,

    i made a portrait game with layout 480x640 and window size 360x640, with fullscreen in browser setting to Scale Outer, unbounded scrolling: yes. It's all ok on mobile android and ios with intel xdk setting to export in fullsize, but in Pc Browser there are content outside window, like Ashley said in the tutorial: "Supporting multiple screen sizes", but i need this sprite to spawn enemies.

    I tried to put a layer on top with 2 black sprite, with alpha 250, outside the window over the spawn enemy sprite, but when i preview on browser i see the spawn object underneath, like the alpha was 200.

    I upload 2 image:

    there is a way to show only the window content with Scale Outer, and mask other object outside the window?

    Thanks in advance


  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • You could just set the sprites to invisible..

    Another option would be to use scale letterbox, or adjust your background to fit..

    Putting a black tiled background over the sprites could work..

    So many options..

  • Hi LittleStain,

    tk for reply. If i put black sprite or tile over other sprites outside the window, there is the alpha problem.

    I solved with a layer over all and a black sprite with the blend mode: source out. Now there isn't the alpha problem and i can mask everything outside window.

    tk again for reply.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)