Jump to content

Scale.onSizeChange not triggering some times?


Raicuparta
 Share

Recommended Posts

Trying to make my game responsive using onSizeChange. It works for pretty much every way I resize the window, including when I go to full screen, but not when I'm increasing the height of the window. Increasing/decreasing the width is detected, but only decreasing the height is detected. Scale mode is set to SHOW_ALL so I suppose it may have something to do with this, but find it weird that it would detect and increase in width but not in height, which would be very useful.

 

EDIT: Actually, it just doesn't seem to work well at all with SHOW_ALL. I'm probably doing this wrong. Even when it detects vertical resize, seems like the values are all messed up and my resizing/repositioning of the sprites fails, but when I resize horizontally everything Is cool.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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