The forum is read-only. New threads, replies and edits are disabled.
setSize works inconsistently across devices.
rickierich

backgroundpic.setSize(screensectionamount, (backgroundskysize.y * 2))

 

setSize does not work the same way in facebook instant game android browser, I do not know why, but size allows you to do interesting things you might want to keep. especially with gradient backgrounds. You can make a gradient 1 pixel wide, set the sprite size and it will fill the shape etc.

Gio

Why does it not work in the same way, what's different?

rickierich

it just breaks in facebook, I do not understand why, but I can never get the same code to work.