makslane wrote:What kind of value a getPixel function should return in Game Editor?
color = getPixel(int x, int y);
somevariable1 = color.r;
somevariable2 = color.g;
somevariable3 = color.b;
yes , almost exactly that
, tho , I realize that it will most likely only work on a "canvas", ....which would work for what I need.
Ideally, I would also love to be able to do a getpixel on the "screen' or "view" ...As, I imagine there would be a lot of use for that in games as well...
but, yes please, even a canvas getpixel() would work..
Ideally, I would like to use the GE engine to move sprites around the screen ( and/or draw them to a canvas) and then use getpixel() on each frame redraw (draw event ) to create an array of pixel data, ready to save as a bitmap.
eg: check what is on screen/canvas using a loop, and fill an array of pixel data..
I can create arrays to do this, but it would be a lot easier simply to be able to capture what is on screen..
if that makes sense...
thanks