hello! i suffered at Sprite scale.


#1

hi, I`am a korean mobile beginner developer.

plz help me.

i want to handle layer that bigger than mobile screen size.

then i implement scrolling, zooming, and texture rendering of backgroundSprite.

all is not problem, and working well.

but, if i add 8~10 backgroundSprite at layer, and setScale for zoom out, frame rate decrease as much as.

i want know what is problem….

backgroundSprite size is 1024 * 1024.

T.T PLZ HELP ME


#2

Oh no, you can’t do this. It must be optimized.
# Try to merge these background sprites into 1~2 images, ask your artist to do so
# If your big sprites have no alpha channels, please try sprite->setBlendFunc( (ccBlendFunc){GL_ONE, GL_ZERO} ) to reduce the calculation of alpha blending.


#3

um, I want perspective effect on background.

if I scroll screen, each background scrolled as different speed….

then, i can`t merge background Sprites 1~2. T.T

and sprites have alpha channels…

try sprite->setBlendFunc( (ccBlendFunc){GL_ONE, GL_ZERO} )
but background Sprite is unVisible. only one sprites is visible. the others is unVisible.

T.T T.T T.T T.T T.T