Jump to content

Scaling a 1x1 image


darkraziel
 Share

Recommended Posts

Let's say I have a 1x1 pixel black image that I want to cover the entire screen with. How could I do this without modifying its scale property? I want to use this 1 black pixel to create a black transparent overlay for popups in my game.

 

Any help is appreciated.

Link to comment
Share on other sites

You might create a tile sprite to do it? Have the 1 black pixel be your texture and the tilesprite will tile it to the width/height.

 

Thanks for this answer. I ended up using this method and then adding the tile sprite to a group that scales itself if the window is resized. Works perfectly.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...