Is it just me or does this not work as it used to? I'm trying to scale the object to fill the screen. Instead, it only fills 1/4 of the screen on the top left.
Sprite:
ViewportLeft(Self.LayerName)+ViewportRight(Self.LayerName)
ViewportBottom(Self.LayerName)+ViewportTop(Self.LayerName)
https://www.dropbox.com/s/w5ma3cybtsbhn0m/scaleToViewportSize.c3p?dl=0
Develop games in your browser. Powerful, performant & highly capable.
Either you have set the origin of your sprite in the upper left corner or you have to set your sprite in the middle of the viewport. At the Moment you set the middle of your sprite in the upper left corner of you viewport.
Thanks! So simple, yet I didn't check the origin point, but the code instead.