hi everybody,
i have an offscreenbuffer for all my game drawings
the offscreenimage is 128 pixels in X
now i want to copy a part of this offscreenbuffer to a new position inside themselve to shift the background for scrolling things.
so i copy pixels from 16 to 128 to a position 0
the problem is that after 16 pixels the drawImage routine draws in it own source, so i get some strange stripes on the screen!
i could work around with a temp-buffer - but i dont have enough memory for that
drawing the image 0 - 112 at position 16 work fine - because the imagecopy never draws into its source.
does anybody has any idea?
thanks for any tip and/or help
andreas

Reply With Quote

