# \[Solved\] Window reveal more/less of screen on resize

**URL:** <https://forum.defold.com/t/solved-window-reveal-more-less-of-screen-on-resize/63664>\
**Category:** Questions\
**Created:** [October 17, 2019, 1:10am UTC](https://forum.defold.com/t/solved-window-reveal-more-less-of-screen-on-resize/63664 "2019-10-17T01:10:30Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![theonlyotherbilly](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/theonlyotherbilly/32/18673_2.png) [@theonlyotherbilly](https://forum.defold.com/u/theonlyotherbilly)\
**Post date:** [October 17, 2019, 1:10am UTC](https://forum.defold.com/t/solved-window-reveal-more-less-of-screen-on-resize/63664/1 "2019-10-17T01:10:30Z")

</div>

The title probably isn’t very clear, but this is my issue: I’m creating a 2D platformer-like game. I want it to be so that when I expand the window more of the scene is revealed. I’ve looked at various perspectives, but they all seem to have a set viewport size and scale it to fill the window. I’m currently using a camera node, if that makes any difference.

Any help would be welcome; I’m familiar with lua and to some degree defold, but I’ve never gotten into render scripts much.

Thanks

---

<div class="post-metadata">

**Author:** ![Edd](https://forum-defold.b-cdn.net/letter_avatar_proxy/v4/letter/e/8c91f0/32.png) [@Edd](https://forum.defold.com/u/Edd)\
**Post date:** [October 17, 2019, 1:28am UTC](https://forum.defold.com/t/solved-window-reveal-more-less-of-screen-on-resize/63664/2 "2019-10-17T01:28:48Z")

</div>

If you’re using the **default.render** maybe you just need to use the fixed projection, not sure if that’s what you want.

 ![image](https://forum-defold-uploads.b-cdn.net/original/3X/9/f/9f2669c4fbfe2833a6647e5b1a947d058d469e4c.png)

```lua
msg.post("@render:", "use_fixed_projection")

```

---

<div class="post-metadata">

**Author:** ![theonlyotherbilly](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/theonlyotherbilly/32/18673_2.png) [@theonlyotherbilly](https://forum.defold.com/u/theonlyotherbilly)\
**Post date:** [October 17, 2019, 1:31am UTC](https://forum.defold.com/t/solved-window-reveal-more-less-of-screen-on-resize/63664/3 "2019-10-17T01:31:05Z")

</div>

Thanks, but I already tried that. Fixed projection just scales the content when the window is resized. I don’t want any scaling; I just want more or less content available depending on screen size.

---

<div class="post-metadata">

**Author:** ![ross.grams](https://forum-defold.b-cdn.net/letter_avatar_proxy/v4/letter/r/cab0a1/32.png) [@ross.grams](https://forum.defold.com/u/ross.grams)\
**Post date:** [October 17, 2019, 2:03am UTC](https://forum.defold.com/t/solved-window-reveal-more-less-of-screen-on-resize/63664/4 "2019-10-17T02:03:04Z")

</div>

Hmm, are you sure you’re not sending any other messages to the render script later? For me, “use\_fixed\_projection” works the way you want–bigger window: more content, smaller window: less content.

---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [October 17, 2019, 6:05am UTC](https://forum.defold.com/t/solved-window-reveal-more-less-of-screen-on-resize/63664/5 "2019-10-17T06:05:52Z")

</div>

> [@theonlyotherbilly](#):
>
> Fixed projection just scales the content when the window is resized. I don’t want any scaling; I just want more or less content available depending on screen size.

As others have already pointed out the fixed projection is what you want. Do you have any errors in the console? Is the script sending the message in use? Are you using the default render script? Share your project please.

---

<div class="post-metadata">

**Author:** ![theonlyotherbilly](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/theonlyotherbilly/32/18673_2.png) [@theonlyotherbilly](https://forum.defold.com/u/theonlyotherbilly)\
**Post date:** [October 17, 2019, 7:14pm UTC](https://forum.defold.com/t/solved-window-reveal-more-less-of-screen-on-resize/63664/6 "2019-10-17T19:14:13Z")

</div>

Ah, I looked into it, and it was a typo; I had “use\_fixeds\_projection” not “use\_fixed\_projection.”

Thanks for the help!
