I am scrolling a TMXLayer
in the background, vertically down. I multiply the distance moved by delta time in the update, so it should be smooth. But it isn't.
Code snippet:
void GLayer::update(float delta) {
//...
myTMXLayer->setPosition(ccp(0,lastPosition-ammount*delta));
//...
}
Could someone help me to get really smooth scrolling?