setSize works inconsistently across devices.

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.

All 2 Comments

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


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

Post a reply
Add Attachment
Submit Reply
Login to Reply