Issue with Image API and 4x scale - is this an engine bug? - Solved!

AdamJ

  • Posts: 19
Hi all.  I'm running my game at 4x scale and currently exporting to flash.  The attached image shows the issue I'm running up against.    I've made a blank image named "image" via the image api blocks and filled it with black.  I then change the pixel at 4,4 to yellow, and finally, create an instance to view the final result.

The image is being scaled up by 4x, which is expected.  But instead of a solid yellow block, I have this strange banded pixel thing going on.  "A" shows what I'm seeing upon export, and in "B" I'm using red to show the rest of the space I'd expect to be yellow. 

If I run the game at 1x, everything looks as it should.  Anything higher than that shows a version of this weird banding.  Is this normal?  Should I be painting pixels differently at a higher scales?  Or can I simply not paint pixels at anything higher than 1x?

Thanks a ton for any advice! 

« Last Edit: August 26, 2017, 05:18:43 pm by AdamJ »
Chickadee Games : www.chickadeegames.com

LIBERADO

  • *
  • Posts: 2720
Should I be painting pixels differently at a higher scales?
Yes, multiply the original pixel size by the current scale. The Bitmap Drawing extension can help you.

« Last Edit: August 26, 2017, 02:23:59 pm by LIBERADO »
I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.

AdamJ

  • Posts: 19
Thanks for the reply Liberado.  I'm not sure I'm full understanding. You'll see what I did in the attached image, but all that does is give me a bigger black square.  The banded pixel is still an issue.  If you have the time and inclination, more info would be super appreciated.
Chickadee Games : www.chickadeegames.com

LIBERADO

  • *
  • Posts: 2720
I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.

AdamJ

  • Posts: 19
Ah, thanks, that was it!
Chickadee Games : www.chickadeegames.com