Hi all,
A problem keeps on bugging me for days:
By implementing these statements
//part one
DirectUtils.getDirectGraphics(s_g).drawPixels(BG, true, 0, Width , BGPosX - s_currentTranslateX, BGPosY, Width - BGPosX, bg1H, 0, DirectGraphics.TYPE_INT_8888_ARGB);
//part two
DirectUtils.getDirectGraphics(s_g).drawPixels(BG, true,Width - BGPosX, Width, - currentTranslateX, BGPosY, BGPosX, bgH, 0, DirectGraphics.TYPE_INT_8888_ARGB);
I split and concate a "looped picture" to show the bg according to current cam's direction
where
bgH is no more than the height of BG
Width equals to the width of BG
and BGPosX is calculated according to cam's looking at matrix
that code block works properly on 6630 6680 n70 n80 and etc EXCEPT 6600
On 6600, it pops up an array out of boundry exception
UNLESS BGPosX is just equal to Width
Waiting for help .......
thanks

Reply With Quote


