My problem is that i can’t fix a smooth scrolling.each time it feels like that i have shifted the image towards right very fast and then again moving left.Can anyone here help me to just continuosly scroll the background smoothly so that it feels like we are moving forward
@StainzE I have seen this one but unable to scroll a background what i mentioned perfectly.The link you mentioned consists of various children who are moving.But I just have to move my background image only forever.
@siddharthshekar yes thats my point what siddharth has written.The image will move to right and again there will be a slight jerk and thus no perfection in the game.But how the screen continously moves in games like flappy bird with perfection.There must be some solutions…
This might not be the best solution, but it’s working. I also had this work in another project casting a sequence on the CCSprite telling first to move to a certain point, and then calling a callback that reset the position of the CCSprite to the original position.
Both ways work
Let me know if you have problems, I can help you through this with precision!
This is the way to do it. Altho I created a custom sprite class which scrolls and resets the position of the sprites. And then add as many to a layer. Then add layer to game layer.
Sorry I didn’t get your point at first. Basically my solution is the same as @davidejones88 . But I just make the two sprites run action like this: runAction(CCRepeatForever::create(CCSequence::create(CCMoveTo::create(..), CCPlace::create(...), NULL)));