You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to have my game on fit mode, but I want the background to fill the whole screen. There is no easy way to do this right now.
There are only 2 options currently available:
1 - I can set the scale mode to NONE and manually control the scale of everything.
2 - I set the background url on the html, not in Phaser. This way I can have a background covering the whole screen but have the rest of the game in FIT mode. The problem with this is that you have no control over the images loaded in the HTML in the phaser side(at least I didn't find a way. Like use setPosition, setScale, etc on the image from the html). When I say image loaded on the html side I mean this.
It would be great if I could set the scale model of everything to FIT on the config, but then overwrite the scale mode of a specific game object. Like, on the create method do myimage.scaleMode(ENVELOP) or something like that.
I think this would help a lot because this gives the user more power. Fit mode is often fine except for the black bars. If we could just call ENVELOP on an individual gameobject that would be great.
I'll leave a relevant discussion here for reference
The text was updated successfully, but these errors were encountered:
I want to have my game on fit mode, but I want the background to fill the whole screen. There is no easy way to do this right now.
There are only 2 options currently available:
1 - I can set the scale mode to NONE and manually control the scale of everything.
2 - I set the background url on the html, not in Phaser. This way I can have a background covering the whole screen but have the rest of the game in FIT mode. The problem with this is that you have no control over the images loaded in the HTML in the phaser side(at least I didn't find a way. Like use setPosition, setScale, etc on the image from the html). When I say image loaded on the html side I mean this.
It would be great if I could set the scale model of everything to FIT on the config, but then overwrite the scale mode of a specific game object. Like, on the create method do myimage.scaleMode(ENVELOP) or something like that.
I think this would help a lot because this gives the user more power. Fit mode is often fine except for the black bars. If we could just call ENVELOP on an individual gameobject that would be great.
I'll leave a relevant discussion here for reference
The text was updated successfully, but these errors were encountered: