I'm stuck with modified FlipPageView and need some help. My goal is to use PageCurl effect on next/prev page. But unfortunate doesn't work well. During transition to next page background is not on the same position as on the start/end. Any hint why?
reserved .. (I found the solution posting now, saving my first place for ninja attacks
Edit comes: Just no need for setanchor point and setposition for your backgrounds. Automatic scaling is already choosing the best picture for your background pictures. See the code for your page0 . Also comment those two lines in page1 and the problem solved.
function Page0:init(pageNo, parent)
self.no = pageNo
--use texture with filtering
self.tx = Texture.new("images/bg.jpg", true)
self.background = Bitmap.new(TextureRegion.new(self.tx))--set position in center--Comment out those 2 lines..--self.background:setAnchorPoint(0.5, 0.5)--self.background:setPosition(conf.width/2, conf.height/2)
self:addChild(self.background)end
Comments
Edit comes:
Just no need for setanchor point and setposition for your backgrounds. Automatic scaling is already choosing the best picture for your background pictures.
See the code for your page0 . Also comment those two lines in page1 and the problem solved.
Likes: bravcm